From 739bf4d0beb55af3d6813b6ca9edc447a2383725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Thu, 16 Dec 2021 18:46:40 +0100 Subject: [PATCH] spirv: Allow VRS with mesh shaders. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Caio Marcelo de Oliveira Filho Part-of: --- src/compiler/spirv/vtn_variables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {