2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Correct Fermi Copy on Linear Textures.

This commit is contained in:
Fernando Sahmkow 2019-04-09 14:13:58 -04:00
parent b81260c65c
commit cd91e98dab

View file

@ -265,6 +265,10 @@ std::size_t SurfaceParams::InnerMemorySize(bool force_gl, bool layer_only,
params.component_type = ComponentTypeFromRenderTarget(config.format); params.component_type = ComponentTypeFromRenderTarget(config.format);
params.type = GetFormatType(params.pixel_format); params.type = GetFormatType(params.pixel_format);
params.width = config.width; params.width = config.width;
if (!params.is_tiled) {
const u32 bpp = params.GetFormatBpp() / 8;
params.pitch = config.width * bpp;
}
params.height = config.height; params.height = config.height;
params.unaligned_height = config.height; params.unaligned_height = config.height;
params.target = SurfaceTarget::Texture2D; params.target = SurfaceTarget::Texture2D;