r600g/compute: Avoid problems when promoting items mapped for reading
authorBruno Jiménez <brunojimen@gmail.com>
Wed, 18 Jun 2014 15:01:56 +0000 (17:01 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 20 Jun 2014 17:44:00 +0000 (13:44 -0400)
commit0b8c29915ba9451e57b256a3c7e0abb986739937
tree52ddebf08848226241dfddea12b99448e47e6c67
parent3da1b17555be3ed33489992baf3d14b2d0743524
r600g/compute: Avoid problems when promoting items mapped for reading

Acording to the OpenCL spec, it is possible to have a buffer mapped
for reading and at read from it using commands or buffers.

With this we can keep the mapping (that exists against the
temporary item) and read with a kernel (from the item we have
just added to the pool) without problems.

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