Mesa (master): intel/tools: Decode 3DSTATE_BINDING_TABLE_POINTERS on SNB
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Sep 6 23:35:38 UTC 2019
Module: Mesa
Branch: master
Commit: 7f5cb5fd6de389c6a47c03ebdaba4105317767b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f5cb5fd6de389c6a47c03ebdaba4105317767b3
Author: Jason Ekstrand <jason at jlekstrand.net>
Date: Sat Aug 31 14:02:15 2019 -0500
intel/tools: Decode 3DSTATE_BINDING_TABLE_POINTERS 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 | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/src/intel/common/gen_batch_decoder.c b/src/intel/common/gen_batch_decoder.c
index 5dc38c86ef3..d6d33eba837 100644
--- a/src/intel/common/gen_batch_decoder.c
+++ b/src/intel/common/gen_batch_decoder.c
@@ -631,6 +631,20 @@ decode_3dstate_constant(struct gen_batch_decode_ctx *ctx, const uint32_t *p)
}
static void
+decode_gen6_3dstate_binding_table_pointers(struct gen_batch_decode_ctx *ctx,
+ const uint32_t *p)
+{
+ fprintf(ctx->fp, "VS Binding Table:\n");
+ dump_binding_table(ctx, p[1], -1);
+
+ fprintf(ctx->fp, "GS Binding Table:\n");
+ dump_binding_table(ctx, p[2], -1);
+
+ fprintf(ctx->fp, "PS Binding Table:\n");
+ dump_binding_table(ctx, p[3], -1);
+}
+
+static void
decode_3dstate_binding_table_pointers(struct gen_batch_decode_ctx *ctx,
const uint32_t *p)
{
@@ -790,6 +804,7 @@ struct custom_decoder {
{ "3DSTATE_CONSTANT_HS", decode_3dstate_constant },
{ "3DSTATE_CONSTANT_DS", decode_3dstate_constant },
+ { "3DSTATE_BINDING_TABLE_POINTERS", decode_gen6_3dstate_binding_table_pointers },
{ "3DSTATE_BINDING_TABLE_POINTERS_VS", decode_3dstate_binding_table_pointers },
{ "3DSTATE_BINDING_TABLE_POINTERS_HS", decode_3dstate_binding_table_pointers },
{ "3DSTATE_BINDING_TABLE_POINTERS_DS", decode_3dstate_binding_table_pointers },
More information about the mesa-commit
mailing list