r600g/compute: Use %u as the unsigned format
authorBruno Jiménez <brunojimen@gmail.com>
Mon, 19 May 2014 16:14:57 +0000 (18:14 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 10 Jun 2014 19:29:57 +0000 (15:29 -0400)
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@amd.com>
src/gallium/drivers/r600/evergreen_compute.c

index 701bb5cfa709dfb08ca98613f4c920b2ae2c9010..a2abf1546dd5fe5099a83d8ec485c3ac837db91f 100644 (file)
@@ -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]);
        }