mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-28 07:05:29 +03:00
Use pitch layout for linear RTs
More likely to match in the texture cache when being sampled.
This commit is contained in:
parent
ac85df7b7a
commit
a0b81d54d6
@ -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};
|
||||
|
Loading…
Reference in New Issue
Block a user