iris: fix Wa_16011107343 for Gfx12
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 28 Feb 2023 19:05:03 +0000 (21:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 28 Feb 2023 23:03:21 +0000 (23:03 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: df9f71d79574 ("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>

src/gallium/drivers/iris/iris_state.c

index 4a9c12d..e2f8ba8 100644 (file)
@@ -7130,7 +7130,7 @@ iris_upload_render_state(struct iris_context *ice,
     * Wa_16011107343 (same for gfx12)
     * 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->state.stage_dirty |= IRIS_STAGE_DIRTY_TCS;
    }