aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines/fermi_2d.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/engines/fermi_2d.cpp')
-rw-r--r--src/video_core/engines/fermi_2d.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/video_core/engines/fermi_2d.cpp b/src/video_core/engines/fermi_2d.cpp
index a9b3355476..35b2c69801 100644
--- a/src/video_core/engines/fermi_2d.cpp
+++ b/src/video_core/engines/fermi_2d.cpp
@@ -60,6 +60,19 @@ void Fermi2D::ConsumeSinkImpl(Core::System& system) {
}
void Fermi2D::Blit() {
+ if (static const u64 trace_destination = [] {
+ const char* value = std::getenv("EDEN_NX2_TRACE_DST");
+ return value != nullptr ? std::strtoull(value, nullptr, 16) : 0ULL;
+ }();
+ trace_destination != 0 && regs.dst.Address() >= trace_destination &&
+ regs.dst.Address() < trace_destination + (32ULL << 20)) {
+ static u32 traced_destination{};
+ if (traced_destination++ < 40) {
+ LOG_INFO(HW_GPU, "nx2 2D blit to traced dst: {:#x} {}x{} -> {:#x} {}x{}",
+ regs.src.Address(), regs.src.width, regs.src.height, regs.dst.Address(),
+ regs.dst.width, regs.dst.height);
+ }
+ }
if (static const bool trace = std::getenv("EDEN_NX2_RT_TRACE") != nullptr; trace) {
static u32 traced{};
if (traced++ < 64) {