radv/rt: fix a potential issue with RADV_PERFTEST=dmashaders
Shaders must be synchronized before doing anything. Cc: mesa-stable Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37126>
This commit is contained in:
committed by
Marge Bot
parent
decf9af472
commit
3cb77cb144
@@ -8499,8 +8499,11 @@ radv_CmdBindPipeline(VkCommandBuffer commandBuffer, VkPipelineBindPoint pipeline
|
||||
|
||||
for (unsigned i = 0; i < rt_pipeline->stage_count; ++i) {
|
||||
struct radv_shader *shader = rt_pipeline->stages[i].shader;
|
||||
if (shader)
|
||||
radv_cs_add_buffer(device->ws, cs->b, shader->bo);
|
||||
if (!shader)
|
||||
continue;
|
||||
|
||||
cmd_buffer->shader_upload_seq = MAX2(cmd_buffer->shader_upload_seq, shader->upload_seq);
|
||||
radv_cs_add_buffer(device->ws, cs->b, shader->bo);
|
||||
}
|
||||
|
||||
cmd_buffer->state.rt_pipeline = rt_pipeline;
|
||||
|
||||
Reference in New Issue
Block a user