diff options
author | 2024-09-06 17:07:35 +0000 | |
---|---|---|
committer | 2024-09-06 17:07:35 +0000 | |
commit | 7f8fb20ecffa83d9ab9275572a7ea06c8fb19f64 (patch) | |
tree | cd8633f3b99b70bd53c5c8a481dc604dd84aa716 /libs/hwui/renderthread | |
parent | 3e3fe4d96fdcabbd0616b4524ac2a92bb1c22dd5 (diff) | |
parent | e77ab7aae54ff887fe090e630652d56f5a5798d2 (diff) |
Merge "Add support for AHARDWAREBUFFER_FORMAT_R10G10B10A10_UNORM" into main
Diffstat (limited to 'libs/hwui/renderthread')
-rw-r--r-- | libs/hwui/renderthread/VulkanManager.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/VulkanManager.cpp b/libs/hwui/renderthread/VulkanManager.cpp index bce84ae77c87..e3023937964e 100644 --- a/libs/hwui/renderthread/VulkanManager.cpp +++ b/libs/hwui/renderthread/VulkanManager.cpp @@ -318,6 +318,15 @@ void VulkanManager::setupDevice(skgpu::VulkanExtensions& grExtensions, tailPNext = &deviceFaultFeatures->pNext; } + if (grExtensions.hasExtension(VK_EXT_RGBA10X6_FORMATS_EXTENSION_NAME, 1)) { + VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT* formatFeatures = + new VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT; + formatFeatures->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT; + formatFeatures->pNext = nullptr; + *tailPNext = formatFeatures; + tailPNext = &formatFeatures->pNext; + } + // query to get the physical device features mGetPhysicalDeviceFeatures2(mPhysicalDevice, &features); // this looks like it would slow things down, |