Skip to content

Commit

Permalink
Fix bad barrier dispatch bug
Browse files Browse the repository at this point in the history
CmdPipelineBarrier (and friends) completely lost all their
memory barriers through vil.
  • Loading branch information
nyorain committed Aug 24, 2023
1 parent 0b38450 commit 32d8a1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/command/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ void BarrierCmdBase::displayInspector(Gui& gui) const {
BarrierCmdBase::PatchedBarriers BarrierCmdBase::patchedBarriers(
ThreadMemScope& memScope, u32 qfam) const {
PatchedBarriers ret;
ret.memBarriers = memBarriers; // need no patching
ret.imgBarriers = memScope.copy(imgBarriers);
ret.bufBarriers = memScope.copy(bufBarriers);

Expand Down
2 changes: 1 addition & 1 deletion src/command/commands.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ struct BarrierCmdBase : Command {
// storing the patched versions) so we can still show the correct,
// application-provided barriers in the UI.
struct PatchedBarriers {
span<VkMemoryBarrier> memBarriers;
span<const VkMemoryBarrier> memBarriers;
span<VkBufferMemoryBarrier> bufBarriers;
span<VkImageMemoryBarrier> imgBarriers;
};
Expand Down

0 comments on commit 32d8a1d

Please sign in to comment.