[vlc-devel] [PATCH] contrib:d3d11: Add missing D3D11_FEATURE_DATA_THREADING structure
Steve Lhomme
robux4 at videolabs.io
Thu May 12 16:12:35 CEST 2016
---
contrib/src/d3d11/processor_format.patch | 8 +++++++-
contrib/src/d3d11/rules.mak | 1 +
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/contrib/src/d3d11/processor_format.patch b/contrib/src/d3d11/processor_format.patch
index 04f98b2..ce7bcfd 100644
--- a/contrib/src/d3d11/processor_format.patch
+++ b/contrib/src/d3d11/processor_format.patch
@@ -1,6 +1,6 @@
--- a/d3d11.idl 2016-02-26 09:21:48.019575300 +0100
+++ b/d3d11.idl 2016-02-26 10:41:58.461027900 +0100
-@@ -3199,6 +3199,12 @@ typedef enum D3D11_CREATE_DEVICE_FLAG {
+@@ -3199,6 +3199,18 @@ typedef enum D3D11_CREATE_DEVICE_FLAG {
D3D11_CREATE_DEVICE_VIDEO_SUPPORT = 0x0800
} D3D11_CREATE_DEVICE_FLAG;
@@ -10,6 +10,12 @@
+ D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT_OUTPUT = 0x00000002,
+} D3D11_VIDEO_PROCESSOR_FORMAT_SUPPORT;
+
++typedef struct D3D11_FEATURE_DATA_THREADING
++{
++ BOOL DriverConcurrentCreates;
++ BOOL DriverCommandLists;
++} D3D11_FEATURE_DATA_THREADING;
++
const UINT D3D11_SDK_VERSION = 7;
cpp_quote("#include <d3d10_1.h>")
diff --git a/contrib/src/d3d11/rules.mak b/contrib/src/d3d11/rules.mak
index f27bbbe..57bff61 100644
--- a/contrib/src/d3d11/rules.mak
+++ b/contrib/src/d3d11/rules.mak
@@ -48,6 +48,7 @@ dxgi12: .sum-d3d11
cp $(TARBALLS)/dxgi1_2.idl $@ && cd $@ && patch -fp1 < ../$(SRC)/d3d11/dxgi12.patch
$(DST_D3D11_H): d3d11
+ (cd $(TARBALLS) && patch -fp1) < $(SRC)/d3d11/processor_format.patch
mkdir -p -- "$(PREFIX)/include/"
$(WIDL) -DBOOL=WINBOOL -I$(IDL_INC_PATH) -h -o $@ $</d3d11.idl
--
2.8.1
More information about the vlc-devel
mailing list