anv: Read the correct register for aux table invalidation when in GPGPU mode in render engine

For 3D or GPGPU modes the same render engine should be used, CCS
register should only be used when using compute engine.

Fixes: 46f5359238 ("anv: Invalidate aux map for copy/video engine")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35700>
This commit is contained in:
José Roberto de Souza
2025-06-23 12:02:14 -07:00
committed by Marge Bot
parent 2a269b2b5b
commit e68f81eaf6
+1 -4
View File
@@ -1846,10 +1846,7 @@ genX(emit_apply_pipe_flushes)(struct anv_batch *batch,
genx_batch_emit_pipe_control_write(batch, device->info, current_pipeline,
sync_op, addr, 0, bits);
enum intel_engine_class engine_class =
current_pipeline == GPGPU ? INTEL_ENGINE_CLASS_COMPUTE :
INTEL_ENGINE_CLASS_RENDER;
genX(invalidate_aux_map)(batch, device, engine_class, bits);
genX(invalidate_aux_map)(batch, device, batch->engine_class, bits);
bits &= ~ANV_PIPE_INVALIDATE_BITS;
}