From: Tom Stellard Date: Mon, 22 Apr 2013 14:32:10 +0000 (-0700) Subject: r600g/compute: Fix input buffer size calculation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09e47f7a25a4e9daa06692819e8fdfdb412c7a46;p=mesa.git r600g/compute: Fix input buffer size calculation Buffer size should be in bytes not dwords. Reviewed-by: Alex Deucher --- 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); }