mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
consider 3d depth alignment in size calculations
This commit is contained in:
parent
4a589cc141
commit
eca711b9b4
@ -359,16 +359,16 @@ void ImageInfo::UpdateSize() {
|
||||
mip_d = std::bit_ceil(mip_d);
|
||||
}
|
||||
|
||||
auto size_mode_adj =
|
||||
tiling_idx == 0x13 ? AmdGpu::TilingMode::Texture_MicroTiled : tiling_mode;
|
||||
|
||||
switch (size_mode_adj) {
|
||||
switch (tiling_mode) {
|
||||
case AmdGpu::TilingMode::Display_Linear: {
|
||||
std::tie(mip_info.pitch, mip_info.size) =
|
||||
ImageSizeLinearAligned(mip_w, mip_h, bpp, num_samples);
|
||||
mip_info.height = mip_h;
|
||||
break;
|
||||
}
|
||||
case AmdGpu::TilingMode::Texture_Volume:
|
||||
mip_d += (-mip_d) & 3u;
|
||||
[[fallthrough]];
|
||||
case AmdGpu::TilingMode::Texture_MicroTiled: {
|
||||
std::tie(mip_info.pitch, mip_info.size) =
|
||||
ImageSizeMicroTiled(mip_w, mip_h, bpp, num_samples);
|
||||
|
@ -11,12 +11,6 @@ namespace VideoCore {
|
||||
|
||||
class TextureCache;
|
||||
|
||||
/// Converts tiled texture data to linear format.
|
||||
void ConvertTileToLinear(u8* dst, const u8* src, u32 width, u32 height, bool neo);
|
||||
|
||||
/// Converts image format to the one used internally by detiler.
|
||||
vk::Format DemoteImageFormatForDetiling(vk::Format format);
|
||||
|
||||
enum DetilerType : u32 {
|
||||
Micro8x1,
|
||||
Micro8x2,
|
||||
|
Loading…
Reference in New Issue
Block a user