iris: make Wa_16013994831 to use intel_needs_workaround

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22560>
This commit is contained in:
Tapani Pälli 2023-04-18 20:23:44 +03:00 committed by Marge Bot
parent 7e9b06f1c6
commit 58e2947cc9

View file

@ -6721,10 +6721,8 @@ iris_upload_dirty_render_state(struct iris_context *ice,
#if GFX_VERx10 >= 120
/* Wa_16013994831 - Disable preemption. */
if (batch->screen->devinfo->verx10 == 120 ||
intel_device_info_is_dg2(batch->screen->devinfo)) {
if (intel_needs_workaround(batch->screen->devinfo, 16013994831))
iris_preemption_streamout_wa(ice, batch, false);
}
#endif
uint32_t dynamic_sol[GENX(3DSTATE_STREAMOUT_length)];