[vlc-devel] [PATCH 05/14] direct3d11: log the Pixel Shader stages in debug builds

Steve Lhomme robux4 at videolabs.io
Tue Mar 21 08:55:17 CET 2017


--
replaces https://patches.videolan.org/patch/16042/
- reorder to have IsRGBShader() defined before this patch
---
 modules/video_output/win32/direct3d11.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index 465d1b1..cb197ed 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1713,6 +1713,13 @@ static HRESULT CompilePixelShader(vout_display_t *vd, const d3d_format_t *format
     }
     sprintf(shader, globPixelShaderDefault, sys->legacy_shader ? "" : "Array", psz_src_transform,
             psz_display_transform, psz_tone_mapping, psz_sampler);
+#ifndef NDEBUG
+    if (!IsRGBShader(format)) {
+        msg_Dbg(vd,"psz_src_transform %s", psz_src_transform);
+        msg_Dbg(vd,"psz_tone_mapping %s", psz_tone_mapping);
+        msg_Dbg(vd,"psz_display_transform %s", psz_display_transform);
+    }
+#endif
 
     ID3DBlob *pPSBlob = CompileShader(vd, shader, true);
     free(shader);
-- 
2.10.1.windows.1



More information about the vlc-devel mailing list