iris: implement emission of 3DSTATE_HS for Wa_1306463417

We need to emit 3DSTATE_HS for each primitive with tessellation.

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/21308>
This commit is contained in:
Tapani Pälli 2023-02-14 11:23:29 +02:00 committed by Marge Bot
parent e4ebb541c5
commit a043ae8e24

View file

@ -7126,6 +7126,13 @@ iris_upload_render_state(struct iris_context *ice,
batch->contains_draw_with_next_seqno = true;
}
/* Wa_1306463417 - Send HS state for every primitive on gfx11.
* We implement this by setting TCS dirty on each draw.
*/
if (GFX_VER == 11 && ice->shaders.prog[MESA_SHADER_TESS_CTRL]) {
ice->state.stage_dirty |= IRIS_STAGE_DIRTY_TCS;
}
iris_upload_dirty_render_state(ice, batch, draw);
if (draw->index_size > 0) {