Commit e040c1b2 authored by Bas Nieuwenhuizen's avatar Bas Nieuwenhuizen
Browse files

radv: Do not setup attachments without a framebuffer.

Test that found this: dEQP-VK.geometry.layered.1d_array.secondary_cmd_buffer

Fixes: 49e6c2fb

 "radv: Store color/depth surface info in attachment info instead of framebuffer."
Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
parent 14c96a63
Pipeline #55699 passed with stages
in 11 minutes and 36 seconds
......@@ -3207,9 +3207,11 @@ VkResult radv_BeginCommandBuffer(
struct radv_subpass *subpass =
&cmd_buffer->state.pass->subpasses[pBeginInfo->pInheritanceInfo->subpass];
result = radv_cmd_state_setup_attachments(cmd_buffer, cmd_buffer->state.pass, NULL);
if (result != VK_SUCCESS)
return result;
if (cmd_buffer->state.framebuffer) {
result = radv_cmd_state_setup_attachments(cmd_buffer, cmd_buffer->state.pass, NULL);
if (result != VK_SUCCESS)
return result;
}
radv_cmd_buffer_set_subpass(cmd_buffer, subpass);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment