iris: emit 3DSTATE_HS for each primitive on gfx12

This is Wa_16011107343, same workaround as commit a043ae8e24
but for gfx12.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21551>
This commit is contained in:
Tapani Pälli 2023-02-27 13:13:20 +02:00 committed by Marge Bot
parent 4b3a22fcd4
commit df9f71d795

View file

@ -7127,9 +7127,11 @@ iris_upload_render_state(struct iris_context *ice,
}
/* Wa_1306463417 - Send HS state for every primitive on gfx11.
* Wa_16011107343 (same for gfx12)
* We implement this by setting TCS dirty on each draw.
*/
if (GFX_VER == 11 && ice->shaders.prog[MESA_SHADER_TESS_CTRL]) {
if ((GFX_VER == 11 || GFX_VER == 12) &&
ice->shaders.prog[MESA_SHADER_TESS_CTRL]) {
ice->state.stage_dirty |= IRIS_STAGE_DIRTY_TCS;
}