Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNumbat committed Jan 14, 2024
1 parent 5dbeef8 commit 7beb69f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,3 @@ For faster parallel builds, you can instead generate [ninja](https://ninja-build
Finish porting
- [ ] shader hot reloading
- [ ] descriptor gen
- [ ] acceleration structures
7 changes: 5 additions & 2 deletions rvk/device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,11 +607,11 @@ u32 Device::queue_index(Queue_Family family) {

void Device::submit(Commands& cmds, u32 index, Fence& fence) {

VkCommandBuffer vk_cmds = cmds;
cmds.end();

VkCommandBufferSubmitInfo cmd_info = {};
cmd_info.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_SUBMIT_INFO;
cmd_info.commandBuffer = vk_cmds;
cmd_info.commandBuffer = cmds;

VkSubmitInfo2 submit_info = {};
submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO_2;
Expand All @@ -627,6 +627,9 @@ void Device::submit(Commands& cmds, u32 index, Fence& fence) {

void Device::submit(Commands& cmds, u32 index, Slice<Sem_Ref> signal, Slice<Sem_Ref> wait,
Fence& fence) {

cmds.end();

Region(R) {

Vec<VkSemaphoreSubmitInfo, Mregion<R>> vk_signal(signal.length());
Expand Down
1 change: 0 additions & 1 deletion rvk/rvk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,6 @@ void Vk::end_frame(Image_View& output) {
frame.cmds.reset();
compositor->render(frame.cmds, state.frame_index, state.swapchain_index, state.has_imgui,
output);
frame.cmds.end();

// Wait for frame available before running the submit; signal frame complete on finish
frame.wait_for.push(
Expand Down

0 comments on commit 7beb69f

Please sign in to comment.