static VkResult
-setup_gralloc0_usage(VkFormat format, VkImageUsageFlags imageUsage,
- int *grallocUsage)
+setup_gralloc0_usage(struct anv_device *device, VkFormat format,
+ VkImageUsageFlags imageUsage, int *grallocUsage)
{
/* WARNING: Android's libvulkan.so hardcodes the VkImageUsageFlags
* returned to applications via VkSurfaceCapabilitiesKHR::supportedUsageFlags.
return result;
int32_t grallocUsage = 0;
- result = setup_gralloc0_usage(format, imageUsage, &grallocUsage);
+ result = setup_gralloc0_usage(device, format, imageUsage, &grallocUsage);
if (result != VK_SUCCESS)
return result;
VkImageUsageFlags imageUsage,
int* grallocUsage)
{
+ ANV_FROM_HANDLE(anv_device, device, device_h);
VkResult result;
*grallocUsage = 0;
if (result != VK_SUCCESS)
return result;
- return setup_gralloc0_usage(format, imageUsage, grallocUsage);
+ return setup_gralloc0_usage(device, format, imageUsage, grallocUsage);
}
VkResult