Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
static struct anv_bo *
anv_block_pool_get_bo(struct anv_block_pool *pool, int32_t *offset)
{
- struct anv_bo *bo, *bo_found = NULL;
+ struct anv_bo *bo_found = NULL;
int32_t cur_offset = 0;
assert(offset);
adjust_relocations_from_state_pool(ss_pool, &cmd_buffer->surface_relocs,
cmd_buffer->last_ss_pool_center);
VkResult result;
- struct anv_bo *bo;
if (cmd_buffer->device->instance->physicalDevice.use_softpin) {
anv_block_pool_foreach_bo(bo, &ss_pool->block_pool) {
result = anv_execbuf_add_bo(execbuf, bo, NULL, 0,
};
#define anv_block_pool_foreach_bo(bo, pool) \
- for (bo = (pool)->bos; bo != &(pool)->bos[(pool)->nbos]; bo++)
+ for (struct anv_bo *bo = (pool)->bos; bo != &(pool)->bos[(pool)->nbos]; bo++)
#define ANV_MAX_BLOCK_POOL_BOS 20