mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
radv: Do not setup attachments without a framebuffer.
Test that found this: dEQP-VK.geometry.layered.1d_array.secondary_cmd_buffer
Fixes: 49e6c2fb78 "radv: Store color/depth surface info in attachment info instead of framebuffer."
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
14c96a6300
commit
e040c1b274
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue