From a0b81d54d65aff172a326553a69207ddce2d3cd1 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 18 Nov 2022 21:32:47 +0000 Subject: [PATCH] Use pitch layout for linear RTs More likely to match in the texture cache when being sampled. --- .../cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp index 270f2faa..027022c7 100644 --- a/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp +++ b/app/src/main/cpp/skyline/gpu/interconnect/maxwell_3d/pipeline_state.cpp @@ -144,7 +144,8 @@ namespace skyline::gpu::interconnect::maxwell3d { if (target.memory.layout == engine::TargetMemory::Layout::Pitch) { guest.dimensions = texture::Dimensions{target.width / guest.format->bpb, target.height, depth}; guest.tileConfig = texture::TileConfig{ - .mode = gpu::texture::TileMode::Linear, + .mode = gpu::texture::TileMode::Pitch, + .pitch = target.width, }; } else { guest.dimensions = gpu::texture::Dimensions{target.width, target.height, depth};