r600g/compute: Added missing address space checking of kernel parameters
authorJonathan Charest <jcharest+mesa-dev@gmail.com>
Mon, 22 Jul 2013 13:24:56 +0000 (09:24 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Tue, 30 Jul 2013 14:09:16 +0000 (07:09 -0700)
commit4f8048bb5a8558ae4313b12ffd70b593cc629fe8
tree36c896c1a6ebf72bb6035b677017541dff30358d
parentd9576598c7e1c6e4fee913a918345190248a9d19
r600g/compute: Added missing address space checking of kernel parameters

To have non-static buffers in local memory, it is necessary to pass them
as arguments to the kernel.

For r600, the correct lds size must be set to the SQ_LDS_ALLOC register.
The correct size is the clover size plus the size reported by the
compiler.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r600/evergreen_compute.c