Mesa (master): r600g/compute: Use %u as the unsigned format

Tom Stellard tstellar at kemper.freedesktop.org
Tue Jun 10 19:31:04 UTC 2014


Module: Mesa
Branch: master
Commit: 112c1b14ed8bb76f8c125db659b8e6b0cd2fc5e6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=112c1b14ed8bb76f8c125db659b8e6b0cd2fc5e6

Author: Bruno Jiménez <brunojimen at gmail.com>
Date:   Mon May 19 18:14:57 2014 +0200

r600g/compute: Use %u as the unsigned format

This fixes an issue when running cl-program-bitcoin-phatk
piglit test where some of the inputs have negative values

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

---

 src/gallium/drivers/r600/evergreen_compute.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/evergreen_compute.c
index 701bb5c..a2abf15 100644
--- a/src/gallium/drivers/r600/evergreen_compute.c
+++ b/src/gallium/drivers/r600/evergreen_compute.c
@@ -323,7 +323,7 @@ void evergreen_compute_upload_input(
 	memcpy(kernel_parameters_start, input, shader->input_size);
 
 	for (i = 0; i < (input_size / 4); i++) {
-		COMPUTE_DBG(ctx->screen, "input %i : %i\n", i,
+		COMPUTE_DBG(ctx->screen, "input %i : %u\n", i,
 			((unsigned*)num_work_groups_start)[i]);
 	}
 




More information about the mesa-commit mailing list