[Piglit] [PATCH] arb_gpu_shader_fp64: Fix "undeclared identifier 'uint'" build error.

Vinson Lee vlee at freedesktop.org
Sat May 14 21:02:42 UTC 2016


vs-non-uniform-control-flow-packing.c:91:2: error: use of undeclared identifier 'uint'; did you mean 'rint'?
        uint d0[2] = {0x0, 0x40000000};
        ^~~~
        rint
/usr/include/math.h:482:15: note: 'rint' declared here
extern double rint(double);
              ^

Fixes: c956a3ff3243 ("arb_gpu_shader_fp64: Add tests to check non-uniform-control-flow writes")
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_gpu_shader_fp64/fs-non-uniform-control-flow-packing.c | 4 ++--
 tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-packing.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/spec/arb_gpu_shader_fp64/fs-non-uniform-control-flow-packing.c b/tests/spec/arb_gpu_shader_fp64/fs-non-uniform-control-flow-packing.c
index 1be80678814d..63fc7afb2ba3 100644
--- a/tests/spec/arb_gpu_shader_fp64/fs-non-uniform-control-flow-packing.c
+++ b/tests/spec/arb_gpu_shader_fp64/fs-non-uniform-control-flow-packing.c
@@ -76,8 +76,8 @@ void
 piglit_init(int argc, char **argv)
 {
 	GLuint u0, u1;
-	uint d0[2] = {0x0, 0x40000000};
-	uint d1[2] = {0x0, 0x3FF00000};
+	unsigned int d0[2] = {0x0, 0x40000000};
+	unsigned int d1[2] = {0x0, 0x3FF00000};
 
 	piglit_require_extension("GL_ARB_gpu_shader_fp64");
 
diff --git a/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-packing.c b/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-packing.c
index b1891fb7e3a3..b42455055695 100644
--- a/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-packing.c
+++ b/tests/spec/arb_gpu_shader_fp64/vs-non-uniform-control-flow-packing.c
@@ -88,8 +88,8 @@ piglit_init(int argc, char **argv)
 		 1.0f,   1.0f,  -1.0f,
 	};
 	GLuint u0, u1;
-	uint d0[2] = {0x0, 0x40000000};
-	uint d1[2] = {0x0, 0x3FF00000};
+	unsigned int d0[2] = {0x0, 0x40000000};
+	unsigned int d1[2] = {0x0, 0x3FF00000};
 
 	piglit_require_extension("GL_ARB_gpu_shader_fp64");
 
-- 
2.8.2



More information about the Piglit mailing list