[vlc-commits] direct3d11: don't use texture arrays for the SPU shader

Steve Lhomme git at videolan.org
Wed Feb 10 11:07:02 UTC 2021


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb  3 11:47:01 2021 +0100| [647cf2e0edb6a97ef22d6b53c8313935be3cd099] | committer: Steve Lhomme

direct3d11: don't use texture arrays for the SPU shader

We only use textures with one slice for SPUs.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=647cf2e0edb6a97ef22d6b53c8313935be3cd099
---

 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 76bd877423..8b2bb849f4 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1176,7 +1176,7 @@ static int Direct3D11CreateGenericResources(vout_display_t *vd)
 
     if (sys->regionQuad.generic.textureFormat != NULL)
     {
-        hr = D3D11_CompilePixelShader(vd, &sys->shaders, sys->d3d_dev, !sys->legacy_shader,
+        hr = D3D11_CompilePixelShader(vd, &sys->shaders, sys->d3d_dev, false,
                                       &sys->display, true, TRANSFER_FUNC_SRGB, COLOR_PRIMARIES_SRGB, true,
                                       &sys->regionQuad);
         if (FAILED(hr))



More information about the vlc-commits mailing list