Use pitch layout for linear RTs

More likely to match in the texture cache when being sampled.
This commit is contained in:
Billy Laws 2022-11-18 21:32:47 +00:00
parent ac85df7b7a
commit a0b81d54d6

View File

@ -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};