mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 18:59:26 +02:00
[vulkan] Verify actual format of ASTC before decode
This commit is contained in:
parent
7bf0e49a91
commit
785461a26c
1 changed files with 3 additions and 1 deletions
|
|
@ -1586,7 +1586,9 @@ Image::Image(TextureCacheRuntime& runtime_, const ImageInfo& info_, GPUVAddr gpu
|
|||
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), scheduler{&runtime_.scheduler},
|
||||
runtime{&runtime_},
|
||||
original_image(MakeImage(runtime_.device, runtime_.memory_allocator, info,
|
||||
runtime->ViewFormats(info.format),
|
||||
WillUseAcceleratedAstcDecode(runtime_.device, info)
|
||||
? std::span<const VkFormat>{}
|
||||
: runtime->ViewFormats(info.format),
|
||||
WillUseAcceleratedAstcDecode(runtime_.device, info)
|
||||
? std::make_optional(VK_FORMAT_R16G16B16A16_SFLOAT)
|
||||
: std::nullopt)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue