ntt: Set the output invariant flag according to the semantics

This is used by virglrenderer to create the correct shaders on the
host. Fixes:

dEQP-GLES31.functional.primitive_bounding_box.triangles.tessellation_set_per_primitive.vertex_tessellation_fragment.fbo

when using ntt with virgl.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14423>
This commit is contained in:
Gert Wollny 2021-12-14 12:24:27 +01:00 committed by Marge Bot
parent 6f348d9c99
commit 8685a505e7
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ ntt_output_decl(struct ntt_compile *c, nir_intrinsic_instr *instr, uint32_t *fra
/* This bit is lost in the i/o semantics, but it's unused in in-tree
* drivers.
*/
bool invariant = false;
bool invariant = semantics.invariant;
out = ureg_DECL_output_layout(c->ureg,
semantic_name, semantic_index,