iris: fix Wa_16011107343 for Gfx12

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: df9f71d795 ("iris: emit 3DSTATE_HS for each primitive on gfx12")
Acked-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21605>
This commit is contained in:
Lionel Landwerlin 2023-02-28 21:05:03 +02:00 committed by Marge Bot
parent 3cd72a2840
commit fc7680b7df

View file

@ -7130,7 +7130,7 @@ iris_upload_render_state(struct iris_context *ice,
* Wa_16011107343 (same for gfx12) * Wa_16011107343 (same for gfx12)
* We implement this by setting TCS dirty on each draw. * We implement this by setting TCS dirty on each draw.
*/ */
if ((GFX_VER == 11 || GFX_VER == 12) && if ((GFX_VER == 11 || GFX_VERx10 == 120) &&
ice->shaders.prog[MESA_SHADER_TESS_CTRL]) { ice->shaders.prog[MESA_SHADER_TESS_CTRL]) {
ice->state.stage_dirty |= IRIS_STAGE_DIRTY_TCS; ice->state.stage_dirty |= IRIS_STAGE_DIRTY_TCS;
} }