Mesa (main): pvr: Remove double error reporting in error path.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 12 11:52:22 UTC 2022


Module: Mesa
Branch: main
Commit: eaa5d37161e84b72798d764ae546e3553aa6c261
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=eaa5d37161e84b72798d764ae546e3553aa6c261

Author: Rajnesh Kanwal <rajnesh.kanwal at imgtec.com>
Date:   Mon Feb 28 17:12:48 2022 +0000

pvr: Remove double error reporting in error path.

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal at imgtec.com>
Reviewed-by: Frank Binns <frank.binns at imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16451>

---

 src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_compute.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_compute.c b/src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_compute.c
index 013d011f189..74a3a0d84ae 100644
--- a/src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_compute.c
+++ b/src/imagination/vulkan/winsys/pvrsrvkm/pvr_srv_job_compute.c
@@ -118,7 +118,7 @@ err_close_timeline:
 err_free_srv_ctx:
    vk_free(srv_ws->alloc, srv_ctx);
 
-   return vk_error(NULL, VK_ERROR_INITIALIZATION_FAILED);
+   return result;
 }
 
 void pvr_srv_winsys_compute_ctx_destroy(struct pvr_winsys_compute_ctx *ctx)



More information about the mesa-commit mailing list