Skip to content

Commit

Permalink
allow READY -> PENDING state transition for cmd buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicebyte committed Jan 12, 2024
1 parent 4c57aec commit 50e3745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ngf-common/cmdbuf-state.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ngf_error ngfi_transition_cmd_buf(
}
break;
case NGFI_CMD_BUFFER_PENDING:
if (*cur_state != NGFI_CMD_BUFFER_READY_TO_SUBMIT) {
if (*cur_state != NGFI_CMD_BUFFER_READY_TO_SUBMIT && *cur_state != NGFI_CMD_BUFFER_READY) {
NGFI_DIAG_ERROR("command buffer not ready to be submitted");
return NGF_ERROR_INVALID_OPERATION;
}
Expand Down

0 comments on commit 50e3745

Please sign in to comment.