[vlc-devel] [PATCH 02/14] direct3d11: log the Pixel Shader stages in debug builds
Steve Lhomme
robux4 at videolabs.io
Mon Mar 20 17:28:21 CET 2017
---
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 080fa2f1a0..458e8380cb 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1700,6 +1700,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.11.1
More information about the vlc-devel
mailing list