radv: Implement VK_EXT_4444_formats
[mesa.git] / src / amd / vulkan / radv_device.c
index 2e9cf32aa4b11f992667b998c497f7b35b173c45..a237a1a19bb64897f8b7f0bf2f061fd7fb6cbeb1 100644 (file)
@@ -1378,6 +1378,13 @@ void radv_GetPhysicalDeviceFeatures2(
                        features->sparseImageFloat32AtomicAdd = false;
                        break;
                }
+               case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: {
+                       VkPhysicalDevice4444FormatsFeaturesEXT *features =
+                               (VkPhysicalDevice4444FormatsFeaturesEXT *)ext;
+                       features->formatA4R4G4B4 = true;
+                       features->formatA4B4G4R4 = true;
+                       break;
+               }
                default:
                        break;
                }