[Mesa-dev] [PATCH 02/15] spirv: Handle SpvExecutionModeXfb

Alejandro PiƱeiro apinheiro at igalia.com
Fri Jul 20 15:08:31 UTC 2018


From: Neil Roberts <nroberts at igalia.com>

This just sets has_transform_feedback_varyings on the shader.
---
 src/compiler/spirv/spirv_to_nir.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index bbef3fcf4df..f9abd48261e 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -3712,7 +3712,7 @@ vtn_handle_execution_mode(struct vtn_builder *b, struct vtn_value *entry_point,
       break;
 
    case SpvExecutionModeXfb:
-      vtn_fail("Unhandled execution mode");
+      b->shader->info.has_transform_feedback_varyings = true;
       break;
 
    case SpvExecutionModeVecTypeHint:
-- 
2.14.1



More information about the mesa-dev mailing list