diff options
author | Timur Kristóf <timur.kristof@gmail.com> | 2021-12-16 18:46:40 +0100 |
---|---|---|
committer | Timur Kristóf <timur.kristof@gmail.com> | 2021-12-22 21:29:22 +0100 |
commit | 739bf4d0beb55af3d6813b6ca9edc447a2383725 (patch) | |
tree | 7e7ea8cc5c8d837c595d23af7f7ccb3003d645d0 | |
parent | c8c00fc6c3a37f877996eccda15f97b3030e022c (diff) |
spirv: Allow VRS with mesh shaders.
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14291>
-rw-r--r-- | src/compiler/spirv/vtn_variables.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 102f06dfea6..a34debfb8b1 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -1119,7 +1119,8 @@ vtn_get_builtin_location(struct vtn_builder *b, break; case SpvBuiltInPrimitiveShadingRateKHR: if (b->shader->info.stage == MESA_SHADER_VERTEX || - b->shader->info.stage == MESA_SHADER_GEOMETRY) { + b->shader->info.stage == MESA_SHADER_GEOMETRY || + b->shader->info.stage == MESA_SHADER_MESH) { *location = VARYING_SLOT_PRIMITIVE_SHADING_RATE; *mode = nir_var_shader_out; } else { |