anv: use the WA infrastructure when emitting WA 16013994831

Signed-off-by: Rohan Garg <rohan.garg@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30295>
This commit is contained in:
Rohan Garg
2024-07-22 12:57:07 +02:00
committed by Marge Bot
parent 3aa29c47b9
commit fe387e14b5

View File

@@ -2601,7 +2601,10 @@ genX(batch_set_preemption)(struct anv_batch *batch,
uint32_t current_pipeline,
bool value)
{
#if GFX_VERx10 >= 120
#if INTEL_WA_16013994831_GFX_VER
if (!intel_needs_workaround(devinfo, 16013994831))
return;
anv_batch_write_reg(batch, GENX(CS_CHICKEN1), cc1) {
cc1.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommand = !value;
cc1.DisablePreemptionandHighPriorityPausingdueto3DPRIMITIVECommandMask = true;