From 596a8c859db6466007677673389320a6c54c1d05 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Thu, 8 Jul 2021 16:38:52 +0200 Subject: [PATCH] blitter: Also print depth blit shaders when debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This requires that the color shader also gets a name tag. Related: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/125 Signed-off-by: Gert Wollny Reviewed-by: Corentin Noël . --- src/vrend_blitter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index a33e2db..569d692 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -288,7 +288,7 @@ static GLuint blit_build_frag_tex_col(struct vrend_blitter_ctx *blit_ctx, vrend_shader_samplertypeconv(blit_ctx->use_gles, tgsi_tex_target), swizzle_and_type.swizzle, dest_swizzle_snippet); - VREND_DEBUG(dbg_blit, NULL, "-- Blit FS shader MSAA: %d -----------------\n" + VREND_DEBUG(dbg_blit, NULL, "-- Blit FS color shader MSAA: %d -----------------\n" "%s\n---------------------------------------\n", msaa, shader_buf); return blit_shader_build_and_check(GL_FRAGMENT_SHADER, shader_buf); @@ -314,6 +314,9 @@ static GLuint blit_build_frag_depth(struct vrend_blitter_ctx *blit_ctx, int tgsi snprintf(shader_buf, 4096, blit_ctx->use_gles ? FS_TEXFETCH_DS_GLES : FS_TEXFETCH_DS_GL, vrend_shader_samplertypeconv(blit_ctx->use_gles, tgsi_tex_target), swizzle_and_type.swizzle); + VREND_DEBUG(dbg_blit, NULL, "-- Blit FS depth shader MSAA: %d -----------------\n" + "%s\n---------------------------------------\n", msaa, shader_buf); + return blit_shader_build_and_check(GL_FRAGMENT_SHADER, shader_buf); }