[vlc-commits] direct3d11: use the shader with no array either with 9.x compatibility or bogus AMD

Steve Lhomme git at videolan.org
Wed Mar 14 11:52:14 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar 13 14:28:35 2018 +0100| [88ff1308287955f49ef437a9e3a61b62e4558cff] | committer: Hugo Beauzée-Luyssen

direct3d11: use the shader with no array either with 9.x compatibility or bogus AMD

(cherry picked from commit d7fb96260cef97ebc5e2a6027d2917469180cbfe)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=88ff1308287955f49ef437a9e3a61b62e4558cff
---

 modules/video_output/win32/direct3d11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index da55cf93ac..b8a2162773 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2043,7 +2043,7 @@ static int Direct3D11CreateFormatResources(vout_display_t *vd, const video_forma
     vout_display_sys_t *sys = vd->sys;
     HRESULT hr;
 
-    sys->legacy_shader = !CanUseTextureArray(vd);
+    sys->legacy_shader = sys->d3d_dev.feature_level < D3D_FEATURE_LEVEL_10_0 || !CanUseTextureArray(vd);
 
     hr = CompilePixelShader(vd, sys->picQuadConfig, fmt->transfer, fmt->b_color_range_full, &sys->picQuadPixelShader);
     if (FAILED(hr))



More information about the vlc-commits mailing list