r600g/compute: Fix input buffer size calculation
authorTom Stellard <thomas.stellard@amd.com>
Mon, 22 Apr 2013 14:32:10 +0000 (07:32 -0700)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 25 Apr 2013 20:24:24 +0000 (13:24 -0700)
Buffer size should be in bytes not dwords.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
src/gallium/drivers/r600/evergreen_compute.c

index 189ffacb7f7c77af1868527ad50762cd7d31bd35..58dc36d1d2a77b66e34022c1fb56e1dbefc67f14 100644 (file)
@@ -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);
        }