radv/aco: enable storageInputOutput16 on GFX9+
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 7 May 2020 09:41:01 +0000 (11:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 17:05:05 +0000 (17:05 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4966>

src/amd/vulkan/radv_device.c

index 682b3f3b1736f1ed095c1f35d542f38614099635..357ab0774928dd3e7241c71e57d287c2eed8ee1f 100644 (file)
@@ -987,7 +987,7 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->storageBuffer16BitAccess = enable;
                        features->uniformAndStorageBuffer16BitAccess = enable;
                        features->storagePushConstant16 = enable;
-                       features->storageInputOutput16 = pdevice->rad_info.has_double_rate_fp16 && !pdevice->use_aco && LLVM_VERSION_MAJOR >= 9;
+                       features->storageInputOutput16 = pdevice->rad_info.has_double_rate_fp16 && (LLVM_VERSION_MAJOR >= 9 || pdevice->use_aco);
                        break;
                }
                case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: {
@@ -1207,7 +1207,7 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->storageBuffer16BitAccess = storage16_enable;
                        features->uniformAndStorageBuffer16BitAccess = storage16_enable;
                        features->storagePushConstant16 = storage16_enable;
-                       features->storageInputOutput16 = pdevice->rad_info.has_double_rate_fp16 && !pdevice->use_aco && LLVM_VERSION_MAJOR >= 9;
+                       features->storageInputOutput16 = pdevice->rad_info.has_double_rate_fp16 && (LLVM_VERSION_MAJOR >= 9 || pdevice->use_aco);
                        features->multiview = true;
                        features->multiviewGeometryShader = true;
                        features->multiviewTessellationShader = true;