Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2161,7 +2161,7 @@ VulkanDevice::CopyOutcome VulkanDevice::CopyBuffer(std::uint64_t destination, st
// a completion-deferred label): it lands only when that batch is reaped, whatever its fence.
const auto completionStoreOverlaps = [&](std::uint64_t address) {
if (alwaysSync || state->CopiedWriterOverlaps(address, bytes)) return true;
return Graphics::Recorder::PendingCompletionLabels() != 0 && recorder.PendingLabelIn(address, bytes);
return Graphics::Recorder::PendingCompletionLabels() != 0 && recorder.CompletionLabelIn(address, bytes);
};
// The CPU decision (see the header): pure queries, in the order that makes the first failing
// test the reason; a signaled writer of the source is fine (its in-place stores are final in
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "prx/libSceAgcDriver/Execution/include/GuestMemory.hpp"
#include "prx/libSceAgcDriver/Execution/include/VulkanDevice.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Draw.hpp"
#include "prx/libSceAgcDriver/Graphics/include/Recorder.hpp"
#include "prx/libc/include/GuestAllocations.hpp"
#include "Recompiler.hpp"
#include "VulkanTestDevice.hpp"
Expand Down Expand Up @@ -109,6 +110,11 @@ int main() {
const GuestBlock output;
const GuestBlock destination;
RecordDispatch(*device, input, output);
auto* recorder = AgcDriver::Graphics::Recorder::Active();
Require(recorder != nullptr, "copied writer: no active recorder");
constexpr std::array<std::byte, 4> labelValue{std::byte{1}, std::byte{0}, std::byte{0}, std::byte{0}};
recorder->NoteLabel(output.Address(), labelValue, 1, 0);
Require(recorder->AfterRecordedWork([] {}), "copied writer: completion action was not recorded");
AgcDriver::VulkanDevice::CopyOutcome outcome{};
{
std::lock_guard gpu(AgcDriver::GuestMemory::GpuMutex());
Expand Down
Loading