Skip to content

Instantly share code, notes, and snippets.

@BtbN
BtbN / 00_surface_empty.patch
Last active December 27, 2015 12:29
libva + intel-driver crash fix helper
diff --git a/va/va.h b/va/va.h
index d9e4c7e..dc0f092 100644
--- a/va/va.h
+++ b/va/va.h
@@ -1905,6 +1905,8 @@ VAStatus vaSyncSurface (
VASurfaceID render_target
);
+#define HAVE_VA_SURFACE_STATUS_EMPTY 1
+
@BtbN
BtbN / stdin
Created December 9, 2013 13:15
stdin
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.0+ (root@Syobon) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) ) #5 SMP Sun Nov 17 07:38:56 CET 2013
[ 0.000000] Command line: BOOT_IMAGE=/kernel-git root=UUID=8efe81d7-c7ed-49c6-ab30-bbae18dfb0d7 ro splash=silent,theme:livecd-2007.0 console=tty1 quiet
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009efff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f000-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000001fffffff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000020000000-0x00000000201fffff] reserved
@BtbN
BtbN / fix_top_field.patch
Last active December 30, 2015 19:19
fix_top_field.patch
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index 75d922d..b5a88b6 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -141,7 +141,7 @@ void hsw_veb_dndi_table(VADriverContextP ctx, struct intel_vebox_context *proc_c
assert(di_param);
progressive_dn = 0;
- dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST);
+ dndi_top_first = !(di_param->flags & VA_DEINTERLACING_BOTTOM_FIELD);
@BtbN
BtbN / stdin
Created December 9, 2013 17:26
stdin
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
index c88e402..2bf4d50 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
@@ -394,8 +394,12 @@ CVPPPicture CVPP::DoDeint(const CVPPPicture& input, bool topFieldFirst, bool fir
CVPPPicture procPic = input;
- if(firstCall && m_forwardReferences.size() < m_forwardReferencesCount)
+ if(m_forwardReferences.size() < m_forwardReferencesCount)
@BtbN
BtbN / clip-4.0.0_beta2.ebuild
Created December 28, 2013 23:36
clip-4.0.0_beta2.ebuild
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit qt4-r2 versionator
DESCRIPTION="Interactive program for evaluation of Laue diffraction patterns"
HOMEPAGE="http://clip4.sf.net/"
@BtbN
BtbN / clip-4.9999.ebuild
Created December 29, 2013 01:02
clip-4.9999.ebuild
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit qt4-r2 mercurial
DESCRIPTION="Interactive program for evaluation of Laue diffraction patterns"
HOMEPAGE="http://clip4.sf.net/"
@BtbN
BtbN / etcportagepatchesx11-driversnvidia-drivers-334.16kernel313.patch
Created February 19, 2014 10:13
/etc/portage/patches/x11-drivers/nvidia-drivers-334.16/kernel313.patch
diff -Naur work.orig/kernel/nv-linux.h work/kernel/nv-linux.h
--- work.orig/kernel/nv-linux.h 2014-02-12 16:10:19.316850127 +0100
+++ work/kernel/nv-linux.h 2014-02-12 16:21:56.236508230 +0100
@@ -273,7 +273,11 @@
#endif
#if !defined(NV_VMWARE) && defined(CONFIG_ACPI)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 13, 0)
#include <acpi/acpi.h>
+#else
@BtbN
BtbN / main.c
Created February 27, 2014 17:07
main.c
#include <assert.h>
#include <stdint.h>
#include <smmintrin.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <string.h>
#define CACHED_BUFFER_SIZE 4096
@BtbN
BtbN / pwmdev.c
Last active August 29, 2015 13:57
pwmdev kernel driver
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/pwm.h>
#include <linux/stat.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <linux/types.h>
@BtbN
BtbN / xcompcap-main.cpp.E
Created April 13, 2014 23:20
xcompcap-main.cpp.E
This file has been truncated, but you can view the full file.
# 1 "/home/btbn/Projekte/obs-studio/plugins/linux-xcomposite/xcompcap-main.cpp"
# 1 "/home/btbn/Projekte/obs-studio/cmbuild//"
# 1 "<Kommandozeile>"
# 1 "/home/btbn/Projekte/obs-studio/plugins/linux-xcomposite/xcompcap-main.cpp"
# 1 "/home/btbn/Projekte/obs-studio/libobs-opengl/GL/gl_obs.h" 1
# 75 "/home/btbn/Projekte/obs-studio/libobs-opengl/GL/gl_obs.h"
# 1 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stddef.h" 1 3 4
# 150 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stddef.h" 3 4
typedef long int ptrdiff_t;
# 213 "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/include/stddef.h" 3 4