mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radv/llvm: enable 8-bit storage features on GFX6-GFX7
It's now supported and all CTS tests pass.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4339>
(cherry picked from commit 7308f2e912)
This commit is contained in:
parent
a0e857c768
commit
820c636a06
2 changed files with 7 additions and 8 deletions
|
|
@ -2362,7 +2362,7 @@
|
|||
"description": "radv/llvm: enable 8-bit storage features on GFX6-GFX7",
|
||||
"nominated": false,
|
||||
"nomination_type": null,
|
||||
"resolution": 4,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1082,10 +1082,9 @@ void radv_GetPhysicalDeviceFeatures2(
|
|||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: {
|
||||
VkPhysicalDevice8BitStorageFeatures *features =
|
||||
(VkPhysicalDevice8BitStorageFeatures *)ext;
|
||||
bool enabled = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_aco;
|
||||
features->storageBuffer8BitAccess = enabled;
|
||||
features->uniformAndStorageBuffer8BitAccess = enabled;
|
||||
features->storagePushConstant8 = enabled;
|
||||
features->storageBuffer8BitAccess = !pdevice->use_aco;
|
||||
features->uniformAndStorageBuffer8BitAccess = !pdevice->use_aco;
|
||||
features->storagePushConstant8 = !pdevice->use_aco;
|
||||
break;
|
||||
}
|
||||
case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: {
|
||||
|
|
@ -1219,9 +1218,9 @@ void radv_GetPhysicalDeviceFeatures2(
|
|||
(VkPhysicalDeviceVulkan12Features *)ext;
|
||||
features->samplerMirrorClampToEdge = true;
|
||||
features->drawIndirectCount = true;
|
||||
features->storageBuffer8BitAccess = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_aco;
|
||||
features->uniformAndStorageBuffer8BitAccess = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_aco;
|
||||
features->storagePushConstant8 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_aco;
|
||||
features->storageBuffer8BitAccess = !pdevice->use_aco;
|
||||
features->uniformAndStorageBuffer8BitAccess = !pdevice->use_aco;
|
||||
features->storagePushConstant8 = !pdevice->use_aco;
|
||||
features->shaderBufferInt64Atomics = LLVM_VERSION_MAJOR >= 9;
|
||||
features->shaderSharedInt64Atomics = LLVM_VERSION_MAJOR >= 9;
|
||||
features->shaderFloat16 = pdevice->rad_info.chip_class >= GFX8 && !pdevice->use_aco;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue