mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-18 19:28:24 +02:00
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:
parent
dbf64e9ad5
commit
dfa0f7a26a
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue