[vlc-commits] d3d11_shader: fix AYUV sampling coordinates

Steve Lhomme git at videolan.org
Fri Aug 10 16:08:12 CEST 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Aug 10 15:49:34 2018 +0200| [35e775994d290e160cd2e0d91004030f8b05a298] | committer: Steve Lhomme

d3d11_shader: fix AYUV sampling coordinates

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

 modules/video_output/win32/d3d11_shaders.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/modules/video_output/win32/d3d11_shaders.c b/modules/video_output/win32/d3d11_shaders.c
index 6295797fa4..c74a19985b 100644
--- a/modules/video_output/win32/d3d11_shaders.c
+++ b/modules/video_output/win32/d3d11_shaders.c
@@ -363,10 +363,10 @@ HRESULT D3D11_CompilePixelShader(vlc_object_t *o, d3d11_handle_t *hd3d, bool leg
             break;
         case DXGI_FORMAT_AYUV:
             psz_sampler[0] =
-                    "sample.x  = shaderTexture[0].Sample(SampleType, In.Texture).z;\
-                    sample.y  = shaderTexture[0].Sample(SampleType, In.Texture).y;\
-                    sample.z  = shaderTexture[0].Sample(SampleType, In.Texture).x;\
-                    sample.a  = shaderTexture[0].Sample(SampleType, In.Texture).a;";
+                    "sample.x  = shaderTexture[0].Sample(SampleType, coords).z;\
+                    sample.y  = shaderTexture[0].Sample(SampleType, coords).y;\
+                    sample.z  = shaderTexture[0].Sample(SampleType, coords).x;\
+                    sample.a  = shaderTexture[0].Sample(SampleType, coords).a;";
             break;
         case DXGI_FORMAT_R8G8B8A8_UNORM:
         case DXGI_FORMAT_B8G8R8A8_UNORM:



More information about the vlc-commits mailing list