[Piglit] [PATCH 1/2] arb_uniform_buffer_object: Add float cast to shader code
Ian Romanick
idr at freedesktop.org
Tue Feb 19 14:18:36 PST 2013
From: Ian Romanick <ian.d.romanick at intel.com>
This makes the bool case actually compile. This was missed in commit
10628a0. However, teh correct code was added to
spec/arb_uniform_buffer_object/getactiveuniformsiv-uniform-type.c in
that commit.
Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59648
---
.../arb_uniform_buffer_object/layout-std140-base-size-and-alignment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/spec/arb_uniform_buffer_object/layout-std140-base-size-and-alignment.c b/tests/spec/arb_uniform_buffer_object/layout-std140-base-size-and-alignment.c
index 5797647..f14bd67 100644
--- a/tests/spec/arb_uniform_buffer_object/layout-std140-base-size-and-alignment.c
+++ b/tests/spec/arb_uniform_buffer_object/layout-std140-base-size-and-alignment.c
@@ -62,7 +62,7 @@ test_format(const struct uniform_type *type, bool row_major)
"};\n"
"\n"
"void main() {\n"
- " gl_FragColor = vec4(pad + %s + size_test);\n"
+ " gl_FragColor = vec4(pad + float(%s) + size_test);\n"
"}\n";
char *fs_source;
GLuint fs, prog;
--
1.7.11.7
More information about the Piglit
mailing list