diff options
author | José Fonseca <[email protected]> | 2012-10-26 14:39:46 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-10-26 16:02:58 +0100 |
commit | 2532f0d063d8326c1ba6fdb3394bb355326c4190 (patch) | |
tree | a0873d5bc0de48ede9d00b9a727167e977571f66 /src/gallium/tests/graw | |
parent | 97078b198d7362c465ff9d726ccbf4e072e51ae9 (diff) |
tests/graw: Update occlusion query example.
Diffstat (limited to 'src/gallium/tests/graw')
-rw-r--r-- | src/gallium/tests/graw/occlusion-query.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/tests/graw/occlusion-query.c b/src/gallium/tests/graw/occlusion-query.c index cfaba34285d..a4f13cbdae4 100644 --- a/src/gallium/tests/graw/occlusion-query.c +++ b/src/gallium/tests/graw/occlusion-query.c @@ -158,7 +158,7 @@ draw(void) union pipe_color_union clear_color; struct pipe_query *q1, *q2; - uint64_t res1, res2; + union pipe_query_result res1, res2; clear_color.f[0] = 0.25; clear_color.f[1] = 0.25; @@ -187,10 +187,10 @@ draw(void) info.ctx->get_query_result(info.ctx, q1, TRUE, &res1); info.ctx->get_query_result(info.ctx, q2, TRUE, &res2); - printf("result1 = %lu result2 = %lu\n", res1, res2); - if (res1 < expected1_min || res1 > expected1_max) + printf("result1 = %lu result2 = %lu\n", res1.u64, res2.u64); + if (res1.u64 < expected1_min || res1.u64 > expected1_max) printf(" Failure: result1 should be near %d\n", expected1); - if (res2 < expected2_min || res2 > expected2_max) + if (res2.u64 < expected2_min || res2.u64 > expected2_max) printf(" Failure: result2 should be near %d\n", expected2); info.ctx->flush(info.ctx, NULL); |