[Piglit] [PATCH 2/4] arb_shader_atomic_counters/max-counters: Init uint variable with unsigned literal.

Francisco Jerez currojerez at riseup.net
Tue Sep 29 10:53:44 PDT 2015


This subtest was probably only tested on nVidia and this happened to
work by luck.
---
 tests/spec/arb_shader_atomic_counters/max-counters.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/spec/arb_shader_atomic_counters/max-counters.c b/tests/spec/arb_shader_atomic_counters/max-counters.c
index 69b4214..38459b4 100644
--- a/tests/spec/arb_shader_atomic_counters/max-counters.c
+++ b/tests/spec/arb_shader_atomic_counters/max-counters.c
@@ -284,7 +284,7 @@ run_test_combined_max_buffers(unsigned num_fragment_buffers,
                 "%s"
                 "\n"
                 "void main() {\n"
-                "       uint x = 0;\n"
+                "       uint x = 0u;\n"
                 "       %s\n"
                 "       fcolor.x = int(x);\n"
                 "}\n",
@@ -306,7 +306,7 @@ run_test_combined_max_buffers(unsigned num_fragment_buffers,
                 "%s"
                 "\n"
                 "void main() {\n"
-                "       uint x = 0;\n"
+                "       uint x = 0u;\n"
                 "       %s\n"
                 "       vcolor.x = int(x);\n"
                 "       gl_Position = position;\n"
-- 
2.5.1



More information about the Piglit mailing list