intel_batch_decoder: disasm shaders when decoding states besides VS
authorDaniil Tatianin <99danilt@gmail.com>
Sun, 20 Nov 2022 11:26:36 +0000 (14:26 +0300)
committerMarge Bot <emma+marge@anholt.net>
Mon, 21 Nov 2022 10:00:32 +0000 (10:00 +0000)
commit089ae08ab1f2c8035680013fe267b049777c2d1b
treeebc60e3069c4bc0df47ac13acb51bc2194dbf577
parentc82775e3c726792ca7b3e98fc7a8b0eeea3c8e8d
intel_batch_decoder: disasm shaders when decoding states besides VS

Previously only 'decode_vs_state' would dump the referenced shader,
which meant we completely ignored every other shader when decoding
the '3DSTATE_PIPELINED_POINTERS' command.

Move the program disassembly logic from 'decode_vs_state' into a
common 'disasm_program_from_group' helper and call it from every
other decode_*_state function, too.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19880>
src/intel/common/intel_batch_decoder.c