glsl: exit loop early if we find xfb layout qualifers
authorTimothy Arceri <timothy.arceri@collabora.com>
Tue, 22 Nov 2016 08:55:29 +0000 (19:55 +1100)
committerTimothy Arceri <timothy.arceri@collabora.com>
Thu, 19 Jan 2017 06:05:26 +0000 (17:05 +1100)
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/compiler/glsl/link_varyings.cpp

index 5529e7a7700f3c7e2989e240307f690725a185cf..6d54a111ea152a1f5a84c327fcde8f51d2a1f307 100644 (file)
@@ -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;
       }
    }