mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 01:58:24 +02:00
anv: Replace va.aux_tt_pool access with a function
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
1b32e33c01
commit
8a563ad905
3 changed files with 9 additions and 3 deletions
|
|
@ -641,9 +641,9 @@ anv_state_pools_init(struct anv_device *device)
|
|||
result = anv_state_pool_init(&device->aux_tt_pool, device,
|
||||
&(struct anv_state_pool_params) {
|
||||
.name = "aux-tt pool",
|
||||
.base_address = device->physical->va.aux_tt_pool.addr,
|
||||
.base_address = anv_physical_device_get_aux_tt_pool_va(device->physical)->addr,
|
||||
.block_size = 16384,
|
||||
.max_size = device->physical->va.aux_tt_pool.size,
|
||||
.max_size = anv_physical_device_get_aux_tt_pool_va(device->physical)->size,
|
||||
});
|
||||
if (result != VK_SUCCESS)
|
||||
goto fail_push_descriptor_buffer_pool;
|
||||
|
|
|
|||
|
|
@ -1755,6 +1755,12 @@ anv_physical_device_get_push_descriptor_buffer_pool_va(const struct anv_physical
|
|||
return &pdevice->va.push_descriptor_buffer_pool;
|
||||
}
|
||||
|
||||
static inline const struct anv_va_range *
|
||||
anv_physical_device_get_aux_tt_pool_va(const struct anv_physical_device *pdevice)
|
||||
{
|
||||
return &pdevice->va.aux_tt_pool;
|
||||
}
|
||||
|
||||
VkResult anv_physical_device_try_create(struct vk_instance *vk_instance,
|
||||
struct _drmDevice *drm_device,
|
||||
struct vk_physical_device **out);
|
||||
|
|
|
|||
|
|
@ -443,7 +443,7 @@ setup_execbuf_for_cmd_buffers(struct anv_execbuf *execbuf,
|
|||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
if (device->physical->va.aux_tt_pool.size > 0) {
|
||||
if (anv_physical_device_get_aux_tt_pool_va(device->physical)->size > 0) {
|
||||
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