summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2013-04-22 07:32:10 -0700
committerTom Stellard <[email protected]>2013-04-25 13:24:24 -0700
commit09e47f7a25a4e9daa06692819e8fdfdb412c7a46 (patch)
tree75933091b29ee597e437c809c0517ce497ea950e /src/gallium
parent904b03824b4c5cc24649aa69dd1a557ddfd5dda3 (diff)
r600g/compute: Fix input buffer size calculation
Buffer size should be in bytes not dwords. Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/r600/evergreen_compute.c2
1 files changed, 1 insertions, 1 deletions
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);
}