From 4dcfb18a827c1b2debda9685f330a8576e39b5b8 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 21 Oct 2020 15:26:06 +0300 Subject: [PATCH] intel/decoder: decode CPS_STATE Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Reviewed-by: Kenneth Graunke Part-of: --- src/intel/common/intel_batch_decoder.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/intel/common/intel_batch_decoder.c b/src/intel/common/intel_batch_decoder.c index 43d33b2..35d700e 100644 --- a/src/intel/common/intel_batch_decoder.c +++ b/src/intel/common/intel_batch_decoder.c @@ -1115,6 +1115,12 @@ decode_pipelined_pointers(struct intel_batch_decode_ctx *ctx, const uint32_t *p) decode_cc_state(ctx, p[6]); } +static void +decode_cps_pointers(struct intel_batch_decode_ctx *ctx, const uint32_t *p) +{ + decode_dynamic_state_pointers(ctx, "CPS_STATE", p, 1); +} + struct custom_decoder { const char *cmd_name; void (*decode)(struct intel_batch_decode_ctx *ctx, const uint32_t *p); @@ -1159,7 +1165,8 @@ struct custom_decoder { { "3DSTATE_SCISSOR_STATE_POINTERS", decode_3dstate_scissor_state_pointers }, { "3DSTATE_SLICE_TABLE_STATE_POINTERS", decode_3dstate_slice_table_state_pointers }, { "MI_LOAD_REGISTER_IMM", decode_load_register_imm }, - { "3DSTATE_PIPELINED_POINTERS", decode_pipelined_pointers } + { "3DSTATE_PIPELINED_POINTERS", decode_pipelined_pointers }, + { "3DSTATE_CPS_POINTERS", decode_cps_pointers }, }; void -- 2.7.4