pvr: pvr_pds_fragment_program_create fix allocation callback usage
The staging buffer is persistent until the destruction of the pvr_pipeline object, so we should set the allocation scope to PVR_ALLOC_SCOPE_OBJECT instead of PVR_ALLOC_SCOPE_COMMAND. Also did the same change in the function pvr_pds_coeff_program_create_and_upload for the staging buffer, because that buffer is also destroyed at pipeline destruction. Fixes dEQP-VK.api.object_management.single_alloc_callbacks.graphics_pipeline. Signed-off-by: Leon Perianu <leon.perianu@imgtec.com> Reviewed-by: Karmjit Mahil <karmjit.mahil@igalia.com> Tested-by: Icenowy Zheng <uwu@icenowy.me> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38662>
This commit is contained in:
@@ -102,7 +102,7 @@ static VkResult pvr_pds_coeff_program_create_and_upload(
|
||||
allocator,
|
||||
staging_buffer_size,
|
||||
8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!staging_buffer)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
@@ -153,7 +153,7 @@ static VkResult pvr_pds_fragment_program_create(
|
||||
allocator,
|
||||
staging_buffer_size,
|
||||
8,
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND);
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!staging_buffer)
|
||||
return vk_error(device, VK_ERROR_OUT_OF_HOST_MEMORY);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user