From bff723e50cf8405e9973d427f6c921fa77c2b3dc Mon Sep 17 00:00:00 2001 From: Leon Perianu Date: Tue, 25 Nov 2025 07:11:16 +0200 Subject: [PATCH] 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 Reviewed-by: Karmjit Mahil Tested-by: Icenowy Zheng Part-of: --- src/imagination/vulkan/pvr_pipeline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/imagination/vulkan/pvr_pipeline.c b/src/imagination/vulkan/pvr_pipeline.c index 378d4252283..eb216aab01a 100644 --- a/src/imagination/vulkan/pvr_pipeline.c +++ b/src/imagination/vulkan/pvr_pipeline.c @@ -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);