[vlc-commits] direct3d11: log the Pixel Shader stages in debug builds
Steve Lhomme
git at videolan.org
Tue Mar 21 18:36:59 CET 2017
vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Mon Mar 20 17:03:58 2017 +0100| [e02de09c6f45d45633633dc56b23d5e3f90a5c91] | committer: Hugo Beauzée-Luyssen
direct3d11: log the Pixel Shader stages in debug builds
--
replaces https://patches.videolan.org/patch/16042/
- reorder to have IsRGBShader() defined before this patch
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e02de09c6f45d45633633dc56b23d5e3f90a5c91
---
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 bf44d21..de73107 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -1707,6 +1707,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);
More information about the vlc-commits
mailing list