mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-10-11 07:03:21 +00:00
Another intent
This commit is contained in:
@@ -962,6 +962,10 @@ bool BlockLinearUnswizzle2DPass::IsSupported(const Device& device,
|
|||||||
if (device.GetStorageBufferAlignment() > Tegra::Texture::GOB_SIZE) {
|
if (device.GetStorageBufferAlignment() > Tegra::Texture::GOB_SIZE) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (VideoCore::Surface::GetFormatType(info.format) !=
|
||||||
|
VideoCore::Surface::SurfaceType::ColorTexture) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (VideoCore::Surface::IsPixelFormatASTC(info.format) && !device.IsOptimalAstcSupported()) {
|
if (VideoCore::Surface::IsPixelFormatASTC(info.format) && !device.IsOptimalAstcSupported()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -1222,6 +1226,10 @@ bool BlockLinearUnswizzle3DBufferPass::IsSupported(const Device& device,
|
|||||||
if (info.size.depth <= 1) {
|
if (info.size.depth <= 1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (VideoCore::Surface::GetFormatType(info.format) !=
|
||||||
|
VideoCore::Surface::SurfaceType::ColorTexture) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (VideoCore::Surface::IsPixelFormatASTC(info.format)) {
|
if (VideoCore::Surface::IsPixelFormatASTC(info.format)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3147,7 +3147,7 @@ void TextureCacheRuntime::AccelerateImageUpload(
|
|||||||
std::span<const VideoCommon::SwizzleParameters> swizzles,
|
std::span<const VideoCommon::SwizzleParameters> swizzles,
|
||||||
u32 z_start, u32 z_count) {
|
u32 z_start, u32 z_count) {
|
||||||
|
|
||||||
if (IsPixelFormatASTC(image.info.format)) {
|
if (astc_decoder_pass && WillUseAcceleratedAstcDecode(device, image.info)) {
|
||||||
return astc_decoder_pass->Assemble(image, map, swizzles);
|
return astc_decoder_pass->Assemble(image, map, swizzles);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user