spirv: Handle SpvExecutionModeXfb
authorNeil Roberts <nroberts@igalia.com>
Tue, 12 Dec 2017 16:18:32 +0000 (17:18 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Tue, 31 Jul 2018 11:18:28 +0000 (13:18 +0200)
This just sets has_transform_feedback_varyings on the shader.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/spirv/spirv_to_nir.c

index 79104695f5f4b9804e7b5f7424d548c93c99b679..4013d2ddd0ec77dddecb20f1e88a7c09d900b5df 100644 (file)
@@ -3721,7 +3721,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: