summaryrefslogtreecommitdiffstats
path: root/src/glsl/glsl_parser.yy
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-05-19 12:42:21 -0700
committerJason Ekstrand <[email protected]>2015-05-19 12:44:22 -0700
commitedff0761881fd833297a6295cb7c9050e1a26eba (patch)
treeedf75181cf576a9b46c84867677227e2d7cb958e /src/glsl/glsl_parser.yy
parente37a89136ff0534ec3694e1bf1246a17d70194be (diff)
vk: Use binding instead of index in uniform layout qualifiers
This more closely matches what the Vulkan docs say to do.
Diffstat (limited to 'src/glsl/glsl_parser.yy')
-rw-r--r--src/glsl/glsl_parser.yy4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/glsl/glsl_parser.yy b/src/glsl/glsl_parser.yy
index 41106060e5e..05fa4ea9ac5 100644
--- a/src/glsl/glsl_parser.yy
+++ b/src/glsl/glsl_parser.yy
@@ -1424,9 +1424,7 @@ layout_qualifier_id:
}
}
- if ((state->ARB_shading_language_420pack_enable ||
- state->has_atomic_counters()) &&
- match_layout_qualifier("binding", $1, state) == 0) {
+ if (match_layout_qualifier("binding", $1, state) == 0) {
$$.flags.q.explicit_binding = 1;
$$.binding = $3;
}