[Mesa-dev] [PATCH 07/15] spirv/nir: Set info.gs.uses_end_primitive
Alejandro PiƱeiro
apinheiro at igalia.com
Fri Jul 20 15:08:36 UTC 2018
From: Neil Roberts <nroberts at igalia.com>
Whenever SpvOpEndPrimitive or SpvOpEndStreamPrimitive is encountered
it now sets uses_end_primitive to true. This reflects the code in
validate_geometry_shader_emissions for GLSL.
---
src/compiler/spirv/spirv_to_nir.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 238298a8340..4d297e60b60 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3208,6 +3208,7 @@ vtn_handle_barrier(struct vtn_builder *b, SpvOp opcode,
case SpvOpEndPrimitive:
case SpvOpEndStreamPrimitive:
intrinsic_op = nir_intrinsic_end_primitive;
+ b->shader->info.gs.uses_end_primitive = true;
break;
default:
unreachable("Invalid opcode");
--
2.14.1
More information about the mesa-dev
mailing list