[vlc-devel] [RFC 6/7] direct3d: constrained spu
Salah-Eddin Shaban
salah at videolan.org
Mon Feb 19 11:43:09 CET 2018
---
modules/video_output/win32/direct3d11.c | 1 +
modules/video_output/win32/direct3d9.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index c7fe0f4b68..a6c5ce3298 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -530,6 +530,7 @@ static int Open(vlc_object_t *object)
vd->info.has_double_click = true;
vd->info.has_pictures_invalid = vd->info.is_slow;
+ vd->info.constrained_spu = true;
if (var_InheritBool(vd, "direct3d11-hw-blending") &&
vd->sys->d3dregion_format != NULL)
diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
index 3ed8fb8942..fb8190e450 100644
--- a/modules/video_output/win32/direct3d9.c
+++ b/modules/video_output/win32/direct3d9.c
@@ -298,6 +298,7 @@ static int Open(vlc_object_t *object)
info.is_slow = !is_d3d9_opaque(fmt.i_chroma);
info.has_double_click = true;
info.has_pictures_invalid = !is_d3d9_opaque(fmt.i_chroma);
+ info.constrained_spu = true;
if (var_InheritBool(vd, "direct3d9-hw-blending") &&
sys->d3dregion_format != D3DFMT_UNKNOWN &&
(sys->d3d_dev.caps.SrcBlendCaps & D3DPBLENDCAPS_SRCALPHA) &&
--
2.13.6
More information about the vlc-devel
mailing list