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

Author: Samuel Pitoiset <[email protected]>
Date:   Fri Mar 10 14:02:01 2023 +0100

radv: fix the error code when the driver fails to create a PS epilog

It would have been returned VK_SUCCESS.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21834>

---

 src/amd/vulkan/radv_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
index 069696e1e10..5843ed4748e 100644
--- a/src/amd/vulkan/radv_pipeline.c
+++ b/src/amd/vulkan/radv_pipeline.c
@@ -3620,7 +3620,7 @@ radv_graphics_pipeline_compile(struct 
radv_graphics_pipeline *pipeline,
                             keep_statistic_info, active_nir_stages, binaries, 
&gs_copy_binary);
 
    if (!radv_pipeline_create_ps_epilog(pipeline, pipeline_key, lib_flags, 
noop_fs))
-      return result;
+      return VK_ERROR_OUT_OF_DEVICE_MEMORY;
 
    if (keep_executable_info) {
       for (int i = 0; i < MESA_VULKAN_SHADER_STAGES; ++i) {

Reply via email to