summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <t_arceri@yahoo.com.au>2016-01-21 09:30:08 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-01-21 09:48:24 +1100
commit9bd8454a24304eabadcc4a5f6766158bbb8eb508 (patch)
treedd34f3d41e6f297019a748859dad8cce6af5e65d
parente792463a99ffe6336a620a6a98131c3b14748403 (diff)
arb_shader_image_load_store: fix location of storage qualifier
In GLSL 1.50 layout qualifiers must come before the storage qualifier. A recent fix in Mesa exposed this issue. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
-rw-r--r--tests/spec/arb_shader_image_load_store/grid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/spec/arb_shader_image_load_store/grid.c b/tests/spec/arb_shader_image_load_store/grid.c
index 35b1b3781..8ef743aab 100644
--- a/tests/spec/arb_shader_image_load_store/grid.c
+++ b/tests/spec/arb_shader_image_load_store/grid.c
@@ -98,7 +98,7 @@ header_hunk(const struct grid_info grid)
"#define H %d\n"
"#define N %d\n"
"#define GRID_T %s\n"
- "#define RET_IMAGE_UNIFORM_T uniform layout(%s) %s2D\n",
+ "#define RET_IMAGE_UNIFORM_T layout(%s) uniform %s2D\n",
grid.size.x, grid.size.y, product(grid.size),
image_vector_type_name(grid.format),
grid.format->name, image_type_name(grid.format));