anv: take primitive ID override to account Wa_14015297576

Commit ca4ec49b0e took primitive ID override fields in to use, this
has to be checked as part of Wa_14015297576.

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/22282>
This commit is contained in:
Tapani Pälli
2023-04-04 08:40:34 +03:00
parent e84cf80fe1
commit 98c6db3fc8
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -3115,6 +3115,7 @@ struct anv_graphics_pipeline {
bool kill_pixel;
bool force_fragment_thread_dispatch;
bool uses_xfb;
bool primitive_id_override;
/* Number of VERTEX_ELEMENT_STATE input elements used by the shader */
uint32_t vs_input_elements;
+1
View File
@@ -524,6 +524,7 @@ emit_3dstate_sbe(struct anv_graphics_pipeline *pipeline)
sbe.PrimitiveIDOverrideComponentY = true;
sbe.PrimitiveIDOverrideComponentZ = true;
sbe.PrimitiveIDOverrideComponentW = true;
pipeline->primitive_id_override = true;
}
} else {
assert(anv_pipeline_is_mesh(pipeline));
+2 -1
View File
@@ -260,7 +260,8 @@ genX(cmd_emit_te)(struct anv_cmd_buffer *cmd_buffer)
*
* Disable Tessellation Distribution when primitive Id is enabled.
*/
if (geom_or_tess_prim_id_used(pipeline))
if (pipeline->primitive_id_override ||
geom_or_tess_prim_id_used(pipeline))
te.TessellationDistributionMode = TEDMODE_OFF;
}