mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 14:50:32 +01:00
anv/cmd_buffer: skip vkCmdNextSubpass() for broken command buffers
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
8174e63869
commit
6743456699
1 changed files with 3 additions and 0 deletions
|
|
@ -2517,6 +2517,9 @@ void genX(CmdNextSubpass)(
|
|||
{
|
||||
ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
||||
if (anv_batch_has_error(&cmd_buffer->batch))
|
||||
return;
|
||||
|
||||
assert(cmd_buffer->level == VK_COMMAND_BUFFER_LEVEL_PRIMARY);
|
||||
|
||||
anv_cmd_buffer_resolve_subpass(cmd_buffer);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue