Skip to content

Commit a09233c

Browse files
committed
fix queue-submit-snyc validation
1 parent 37f03e9 commit a09233c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

rvk/rvk.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ void Vk::end_frame(Image_View& output) {
364364
// Wait for frame available before running the submit; signal frame complete on finish
365365
frame.wait(Sem_Ref{frame.available, VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT});
366366

367-
auto signal = Sem_Ref{frame.complete, VK_PIPELINE_STAGE_2_BOTTOM_OF_PIPE_BIT};
367+
auto signal = Sem_Ref{frame.complete, VK_PIPELINE_STAGE_2_COLOR_ATTACHMENT_OUTPUT_BIT};
368368
device->submit(frame.cmds, 0, Slice{&signal, 1}, frame.waits(), frame.fence);
369369

370370
frame.clear();
@@ -471,6 +471,10 @@ void shutdown() {
471471
info("[rvk] Completed shutdown.");
472472
}
473473

474+
void wait_idle() {
475+
impl::singleton->wait_idle();
476+
}
477+
474478
void reset_imgui() {
475479
impl::singleton->wait_idle();
476480
impl::singleton->destroy_imgui();

rvk/rvk.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ struct Config {
4141
bool startup(Config config);
4242
void shutdown();
4343
void reset_imgui();
44+
void wait_idle();
4445

4546
// Info
4647

0 commit comments

Comments
 (0)