r600g/compute: Map only against intermediate buffers
authorBruno Jiménez <brunojimen@gmail.com>
Wed, 18 Jun 2014 15:01:58 +0000 (17:01 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 20 Jun 2014 17:44:08 +0000 (13:44 -0400)
commit257d697fb92c617161a2a90607c4cde6f7b9034a
treefe86c2ff1955a7853ef34cd392c8ae18360c20bc
parent9b933b73a9baf6031e5974fc2aa76011a50949d3
r600g/compute: Map only against intermediate buffers

With this we can assure that mapped buffers will never change
its position when relocating the pool.

This patch should finally solve the mapping bug.

v2: Use the new is_item_in_pool util function,
    as suggested by Tom Stellard

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