venus: clean up vn_android api names
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10847>
This commit is contained in:
@@ -211,11 +211,11 @@ vn_num_planes_from_format_and_modifier(VkPhysicalDevice physical_device,
|
|||||||
}
|
}
|
||||||
|
|
||||||
VkResult
|
VkResult
|
||||||
vn_image_from_anb(struct vn_device *dev,
|
vn_android_image_from_anb(struct vn_device *dev,
|
||||||
const VkImageCreateInfo *image_info,
|
const VkImageCreateInfo *image_info,
|
||||||
const VkNativeBufferANDROID *anb_info,
|
const VkNativeBufferANDROID *anb_info,
|
||||||
const VkAllocationCallbacks *alloc,
|
const VkAllocationCallbacks *alloc,
|
||||||
struct vn_image **out_img)
|
struct vn_image **out_img)
|
||||||
{
|
{
|
||||||
/* If anb_info->handle points to a classic resouce created from
|
/* If anb_info->handle points to a classic resouce created from
|
||||||
* virtio_gpu_cmd_resource_create_3d, anb_info->stride is the stride of the
|
* virtio_gpu_cmd_resource_create_3d, anb_info->stride is the stride of the
|
||||||
|
@@ -45,11 +45,11 @@ vn_android_find_native_buffer(const VkImageCreateInfo *create_info)
|
|||||||
}
|
}
|
||||||
|
|
||||||
VkResult
|
VkResult
|
||||||
vn_image_from_anb(struct vn_device *dev,
|
vn_android_image_from_anb(struct vn_device *dev,
|
||||||
const VkImageCreateInfo *image_info,
|
const VkImageCreateInfo *image_info,
|
||||||
const VkNativeBufferANDROID *anb_info,
|
const VkNativeBufferANDROID *anb_info,
|
||||||
const VkAllocationCallbacks *alloc,
|
const VkAllocationCallbacks *alloc,
|
||||||
struct vn_image **out_img);
|
struct vn_image **out_img);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
@@ -68,17 +68,17 @@ vn_android_wsi_fini(UNUSED struct vn_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline const VkNativeBufferANDROID *
|
static inline const VkNativeBufferANDROID *
|
||||||
vn_android_find_native_buffer(const VkImageCreateInfo *create_info)
|
vn_android_find_native_buffer(UNUSED const VkImageCreateInfo *create_info)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline VkResult
|
static inline VkResult
|
||||||
vn_image_from_anb(struct vn_device *dev,
|
vn_android_image_from_anb(UNUSED struct vn_device *dev,
|
||||||
const VkImageCreateInfo *image_info,
|
UNUSED const VkImageCreateInfo *image_info,
|
||||||
const VkNativeBufferANDROID *anb_info,
|
UNUSED const VkNativeBufferANDROID *anb_info,
|
||||||
const VkAllocationCallbacks *alloc,
|
UNUSED const VkAllocationCallbacks *alloc,
|
||||||
struct vn_image **out_img)
|
UNUSED struct vn_image **out_img)
|
||||||
{
|
{
|
||||||
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||||
}
|
}
|
||||||
|
@@ -299,7 +299,8 @@ vn_CreateImage(VkDevice device,
|
|||||||
assert(wsi_info->scanout);
|
assert(wsi_info->scanout);
|
||||||
result = vn_wsi_create_scanout_image(dev, pCreateInfo, alloc, &img);
|
result = vn_wsi_create_scanout_image(dev, pCreateInfo, alloc, &img);
|
||||||
} else if (anb_info) {
|
} else if (anb_info) {
|
||||||
result = vn_image_from_anb(dev, pCreateInfo, anb_info, alloc, &img);
|
result =
|
||||||
|
vn_android_image_from_anb(dev, pCreateInfo, anb_info, alloc, &img);
|
||||||
} else {
|
} else {
|
||||||
result = vn_image_create(dev, pCreateInfo, alloc, &img);
|
result = vn_image_create(dev, pCreateInfo, alloc, &img);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user