diff options
| author | 2018-11-30 14:27:28 +0000 | |
|---|---|---|
| committer | 2018-11-30 14:27:28 +0000 | |
| commit | ef60a0589eabf9d423fbc9f5fc78d66e9cd65088 (patch) | |
| tree | 2cdf1c658d4536011ea97c46263243fefb5c7288 | |
| parent | c7bbf2ac02837aed19e26acc49161d128ba34f8b (diff) | |
| parent | 050361732a5221ebbbd1f6b399ae840d47658cd7 (diff) | |
Merge "In VulkanManager enable ycbcr feature on VkDevice."
| -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 d84ec8508ee4..9a6df75fedd9 100644 --- a/libs/hwui/renderthread/VulkanManager.cpp +++ b/libs/hwui/renderthread/VulkanManager.cpp @@ -263,6 +263,15 @@ bool VulkanManager::setupDevice(GrVkExtensions& grExtensions, VkPhysicalDeviceFe tailPNext = &blend->pNext; } + VkPhysicalDeviceSamplerYcbcrConversionFeatures* ycbcrFeature; + ycbcrFeature = (VkPhysicalDeviceSamplerYcbcrConversionFeatures*) malloc( + sizeof(VkPhysicalDeviceSamplerYcbcrConversionFeatures)); + LOG_ALWAYS_FATAL_IF(!ycbcrFeature); + ycbcrFeature->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES; + ycbcrFeature->pNext = nullptr; + *tailPNext = ycbcrFeature; + tailPNext = &ycbcrFeature->pNext; + // query to get the physical device features mGetPhysicalDeviceFeatures2(mPhysicalDevice, &features); // this looks like it would slow things down, |