diff options
author | Bruno Jiménez <[email protected]> | 2014-06-18 17:01:52 +0200 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2014-06-20 13:43:46 -0400 |
commit | 9e491eb5d7d9257d5e8c70865a042c6a4f5480d3 (patch) | |
tree | 52b7d3873f5f1f545232706cf03a05fbecd2dfa4 /src | |
parent | 0038402753b6a5c2a56f66ae0ffe25a9eb1d1b63 (diff) |
r600g/compute: Add an util function to know if an item is in the pool
Every item that has been placed in the pool must have start_in_dw
different from -1.
Reviewed-by: Tom Stellard <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/compute_memory_pool.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/compute_memory_pool.h b/src/gallium/drivers/r600/compute_memory_pool.h index e94159cedac..d8201c4659f 100644 --- a/src/gallium/drivers/r600/compute_memory_pool.h +++ b/src/gallium/drivers/r600/compute_memory_pool.h @@ -59,6 +59,11 @@ struct compute_memory_pool }; +static inline int is_item_in_pool(struct compute_memory_item *item) +{ + return item->start_in_dw != -1; +} + struct compute_memory_pool* compute_memory_pool_new(struct r600_screen *rscreen); ///Creates a new pool void compute_memory_pool_delete(struct compute_memory_pool* pool); ///Frees all stuff in the pool and the pool struct itself too |