Commit 3429bb56 by Hernan Liatis

Add usage flags for old gralloc

vkgetSwapchainGrallocUsageANDROID() now sets a single flag to GRALLOC_USAGE_SW_WRITE_OFTEN Bug: b/122837237 Change-Id: I809659c6bbc49b84302b8c58751de5ed0135b1ef Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/32249Tested-by: 's avatarHernan Liatis <hliatis@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarChris Forbes <chrisforbes@google.com>
parent bd18d589
......@@ -2770,6 +2770,8 @@ VKAPI_ATTR VkResult VKAPI_CALL vkGetSwapchainGrallocUsageANDROID(VkDevice device
TRACE("(VkDevice device = %p, VkFormat format = %d, VkImageUsageFlags imageUsage = %d, int* grallocUsage = %p)",
device, format, imageUsage, grallocUsage);
*grallocUsage = GRALLOC_USAGE_SW_WRITE_OFTEN;
return VK_SUCCESS;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment