pvr: Fix incorrect error return in pvr_ctx_sr_programs_setup()

Partially fixes: dEQP-VK.api.device_init
  .create_instance_device_intentional_alloc_fail.basic

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23023>
This commit is contained in:
Matt Coster 2023-04-27 15:35:42 +01:00 committed by Marge Bot
parent c0b4359113
commit 0ae96a95ff

View file

@ -599,7 +599,7 @@ err_free_usc_store_program_bo:
err_free_store_load_state_bo:
pvr_bo_free(device, sr_programs->store_load_state_bo);
return VK_SUCCESS;
return result;
}
static void pvr_ctx_sr_programs_cleanup(struct pvr_device *device,