From 09e47f7a25a4e9daa06692819e8fdfdb412c7a46 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 22 Apr 2013 07:32:10 -0700 Subject: [PATCH] r600g/compute: Fix input buffer size calculation Buffer size should be in bytes not dwords. Reviewed-by: Alex Deucher --- 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 189ffacb7f7..58dc36d1d2a 100644 --- a/src/gallium/drivers/r600/evergreen_compute.c +++ b/src/gallium/drivers/r600/evergreen_compute.c @@ -203,7 +203,7 @@ void evergreen_compute_upload_input( unsigned buffer_size = shader->input_size; /* Add space for the grid dimensions */ - buffer_size += kernel_parameters_offset_bytes * sizeof(uint); + buffer_size += kernel_parameters_offset_bytes; shader->kernel_param = r600_compute_buffer_alloc_vram( ctx->screen, buffer_size); } -- 2.30.2