summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorNguyen Dac Nam <nam.kazt.91@gmail.com>2020-02-19 06:56:36 +0100
committerGitHub <noreply@github.com>2020-02-19 06:56:36 +0100
commite61c7e93104a551324e1229b5e8a732288266c83 (patch)
tree6482ef7e6b4b4944203a88f0dc4983bb4f1243c9 /src/video_core
parentvk_device: add check for shaderStorageImageReadWithoutFormat (diff)
downloadyuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.gz
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.bz2
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.lz
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.xz
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.tar.zst
yuzu-e61c7e93104a551324e1229b5e8a732288266c83.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/vk_device.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp
index 9840f26e5..5df6441d3 100644
--- a/src/video_core/renderer_vulkan/vk_device.cpp
+++ b/src/video_core/renderer_vulkan/vk_device.cpp
@@ -106,6 +106,8 @@ bool VKDevice::Create(const vk::DispatchLoaderDynamic& dldi, vk::Instance instan
features.tessellationShader = true;
features.fragmentStoresAndAtomics = true;
features.shaderImageGatherExtended = true;
+ features.shaderStorageImageReadWithoutFormat =
+ is_shader_storage_img_read_without_format_supported;
features.shaderStorageImageWriteWithoutFormat = true;
features.textureCompressionASTC_LDR = is_optimal_astc_supported;
@@ -457,6 +459,8 @@ void VKDevice::SetupFamilies(const vk::DispatchLoaderDynamic& dldi, vk::SurfaceK
void VKDevice::SetupFeatures(const vk::DispatchLoaderDynamic& dldi) {
const auto supported_features{physical.getFeatures(dldi)};
+ is_shader_storage_img_read_without_format_supported =
+ supported_features.shaderStorageImageReadWithoutFormat;
is_optimal_astc_supported = IsOptimalAstcSupported(supported_features, dldi);
}
@@ -530,6 +534,7 @@ std::unordered_map<vk::Format, vk::FormatProperties> VKDevice::GetFormatProperti
vk::Format::eBc6HUfloatBlock,
vk::Format::eBc6HSfloatBlock,
vk::Format::eBc1RgbaSrgbBlock,
+ vk::Format::eBc2SrgbBlock,
vk::Format::eBc3SrgbBlock,
vk::Format::eBc7SrgbBlock,
vk::Format::eAstc4x4SrgbBlock,