r600g/compute: Implement compute_memory_demote_item
authorBruno Jiménez <brunojimen@gmail.com>
Wed, 18 Jun 2014 15:01:57 +0000 (17:01 +0200)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 20 Jun 2014 17:44:04 +0000 (13:44 -0400)
commit9b933b73a9baf6031e5974fc2aa76011a50949d3
treee70c55394791ca22c6f75f0c276468d0b0a082a3
parent0b8c29915ba9451e57b256a3c7e0abb986739937
r600g/compute: Implement compute_memory_demote_item

This function will be used when we want to map an item
that it's already in the pool.

v2: Use temporary variables to avoid so many castings in functions,
    as suggested by Tom Stellard

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