[Mesa-dev] [PATCH 20/25] glsl: exit loop early if we find xfb layout qualifers

Timothy Arceri timothy.arceri at collabora.com
Mon Jan 9 05:13:45 UTC 2017


---
 src/compiler/glsl/link_varyings.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/link_varyings.cpp b/src/compiler/glsl/link_varyings.cpp
index da51fd8..398e1da 100644
--- a/src/compiler/glsl/link_varyings.cpp
+++ b/src/compiler/glsl/link_varyings.cpp
@@ -120,6 +120,7 @@ process_xfb_layout_qualifiers(void *mem_ctx, const gl_linked_shader *sh,
    for (unsigned j = 0; j < MAX_FEEDBACK_BUFFERS; j++) {
       if (sh->info.TransformFeedback.BufferStride[j]) {
          has_xfb_qualifiers = true;
+         break;
       }
    }
 
-- 
2.9.3



More information about the mesa-dev mailing list