anv: Make pipeline mode switches show which mode is being entered

This helps for debug when wanting to check which pipeline mode the
driver has selected for a given section of a frame.

Signed-off-by: Casey Bowman <casey.g.bowman@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38317>
This commit is contained in:
Casey Bowman 2025-06-17 23:51:42 -07:00
parent 3f795016d3
commit bcdc0aae44

View file

@ -4907,7 +4907,10 @@ genX(flush_pipeline_select)(struct anv_cmd_buffer *cmd_buffer,
intel_needs_workaround(cmd_buffer->device->info, 16013063087))
bits |= ANV_PIPE_STATE_CACHE_INVALIDATE_BIT;
anv_add_pending_pipe_bits(cmd_buffer, bits, "flush/invalidate PIPELINE_SELECT");
anv_add_pending_pipe_bits(cmd_buffer, bits,
pipeline == _3D ?
"flush/invalidate PIPELINE_SELECT 3D" :
"flush/invalidate PIPELINE_SELECT GPGPU");
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);
#if GFX_VER == 9