anv: Use anv_device_get_aux_tt_pool()

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42133>
This commit is contained in:
José Roberto de Souza 2025-07-01 12:35:57 -07:00 committed by Marge Bot
parent dbf64e9ad5
commit dfa0f7a26a
2 changed files with 4 additions and 4 deletions

View file

@ -165,7 +165,7 @@ decode_get_bo(void *v_batch, bool ppgtt, uint64_t address)
get_bo_from_pool(&ret_bo, &device->indirect_push_descriptor_pool.block_pool, address))
return ret_bo;
if (device->info->has_aux_map &&
get_bo_from_pool(&ret_bo, &device->aux_tt_pool.block_pool, address))
get_bo_from_pool(&ret_bo, &anv_device_get_aux_tt_pool(device)->block_pool, address))
return ret_bo;
if (!device->cmd_buffer_being_decoded)
@ -226,7 +226,7 @@ intel_aux_map_buffer_alloc(void *driver_ctx, uint32_t size)
struct anv_device *device = (struct anv_device*)driver_ctx;
struct anv_state_pool *pool = &device->aux_tt_pool;
struct anv_state_pool *pool = anv_device_get_aux_tt_pool(device);
buf->state = anv_state_pool_alloc(pool, size, size);
buf->base.gpu = pool->block_pool.bo->offset + buf->state.offset;
@ -241,7 +241,7 @@ intel_aux_map_buffer_free(void *driver_ctx, struct intel_buffer *buffer)
{
struct intel_aux_map_buffer *buf = (struct intel_aux_map_buffer*)buffer;
struct anv_device *device = (struct anv_device*)driver_ctx;
struct anv_state_pool *pool = &device->aux_tt_pool;
struct anv_state_pool *pool = anv_device_get_aux_tt_pool(device);
anv_state_pool_free(pool, buf->state);
free(buf);
}

View file

@ -444,7 +444,7 @@ setup_execbuf_for_cmd_buffers(struct anv_execbuf *execbuf,
return result;
if (device->physical->va.aux_tt_pool.size > 0) {
result = pin_state_pool(device, execbuf, &device->aux_tt_pool);
result = pin_state_pool(device, execbuf, anv_device_get_aux_tt_pool(device));
if (result != VK_SUCCESS)
return result;
}