Mesa (master): intel/tools: Decode PS kernels on SNB

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 23:35:38 UTC 2019


Module: Mesa
Branch: master
Commit: c15b197d74c854ffcd15f7e1ebfe63ddbe551335
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c15b197d74c854ffcd15f7e1ebfe63ddbe551335

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Sat Aug 31 14:11:49 2019 -0500

intel/tools: Decode PS kernels on SNB

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/common/gen_batch_decoder.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index d6d33eba837..9462a67d993 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -580,7 +580,9 @@ decode_ps_kernels(struct gen_batch_decode_ctx *ctx, const uint32_t *p)
       ctx_disassemble_program(ctx, ksp[1], "SIMD16 fragment shader");
    if (enabled[2])
       ctx_disassemble_program(ctx, ksp[2], "SIMD32 fragment shader");
-   fprintf(ctx->fp, "\n");
+
+   if (enabled[0] || enabled[1] || enabled[2])
+      fprintf(ctx->fp, "\n");
 }
 
 static void
@@ -798,6 +800,7 @@ struct custom_decoder {
    { "3DSTATE_DS", decode_single_ksp },
    { "3DSTATE_HS", decode_single_ksp },
    { "3DSTATE_PS", decode_ps_kernels },
+   { "3DSTATE_WM", decode_ps_kernels },
    { "3DSTATE_CONSTANT_VS", decode_3dstate_constant },
    { "3DSTATE_CONSTANT_GS", decode_3dstate_constant },
    { "3DSTATE_CONSTANT_PS", decode_3dstate_constant },




More information about the mesa-commit mailing list