radv: Fix missing wait of GS copy shader upload for dmashaders.
authorTatsuyuki Ishi <ishitatsuyuki@gmail.com>
Fri, 17 Mar 2023 14:02:50 +0000 (23:02 +0900)
committerMarge Bot <emma+marge@anholt.net>
Sat, 18 Mar 2023 03:04:15 +0000 (03:04 +0000)
Fixes: 0cde42a506f ("radv: Wait for shader uploads asynchronously.")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21985>

src/amd/vulkan/radv_pipeline.c

index 97f9eff..b60fa74 100644 (file)
@@ -5005,6 +5005,11 @@ radv_graphics_pipeline_init(struct radv_graphics_pipeline *pipeline, struct radv
       }
    }
 
+   if (pipeline->base.gs_copy_shader) {
+      pipeline->base.shader_upload_seq = MAX2(pipeline->base.shader_upload_seq,
+                                              pipeline->base.gs_copy_shader->upload_seq);
+   }
+
    if (extra) {
       radv_pipeline_init_extra(pipeline, extra, &blend, &state, &vgt_gs_out_prim_type);
    }