Browse Source

[vk] Verify hardware supports with optimal tiling to avoid software conversion

pull/3168/head
CamilleLaVey 4 weeks ago
committed by Caio Oliveira
parent
commit
4544f069e9
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 4
      src/video_core/vulkan_common/vulkan_device.cpp

4
src/video_core/vulkan_common/vulkan_device.cpp

@ -744,8 +744,8 @@ void Device::SaveShader(std::span<const u32> spirv) const {
}
bool Device::ComputeIsOptimalAstcSupported() const {
// Disable for now to avoid converting ASTC twice.
static constexpr std::array astc_formats = {
// Verify hardware supports all ASTC formats with optimal tiling to avoid software conversion
static constexpr std::array<VkFormat, 28> astc_formats = {
VK_FORMAT_ASTC_4x4_UNORM_BLOCK, VK_FORMAT_ASTC_4x4_SRGB_BLOCK,
VK_FORMAT_ASTC_5x4_UNORM_BLOCK, VK_FORMAT_ASTC_5x4_SRGB_BLOCK,
VK_FORMAT_ASTC_5x5_UNORM_BLOCK, VK_FORMAT_ASTC_5x5_SRGB_BLOCK,

Loading…
Cancel
Save