aboutsummaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2020-05-07 11:41:01 +0200
committerMarge Bot <[email protected]>2020-05-19 17:05:05 +0000
commit0fb3dc8d1030cf3c373bf90dea61d03d22950b58 (patch)
tree0b53c62a326fcedf425c7a3fd837fbd1604d2ed9 /src/amd/vulkan
parentcc1a1da8abbc88e17fc6dec8d000436898187971 (diff)
radv/aco: enable storageInputOutput16 on GFX9+
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4966>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r--src/amd/vulkan/radv_device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_device.c b/src/amd/vulkan/radv_device.c
index 682b3f3b173..357ab077492 100644
--- a/src/amd/vulkan/radv_device.c
+++ b/src/amd/vulkan/radv_device.c
@@ -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;