intel/decoder: decode CPS_STATE
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 21 Oct 2020 12:26:06 +0000 (15:26 +0300)
committerMarge Bot <eric+marge@anholt.net>
Sun, 2 May 2021 20:20:06 +0000 (20:20 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7455>

src/intel/common/intel_batch_decoder.c

index 43d33b2..35d700e 100644 (file)
@@ -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