mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 20:10:17 +01:00
anv: fix compilation due to missing vk_format_from_android
Fixes: 4fb6c051c9 ("anv: Move vk_format helpers to common code")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4428
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9549>
This commit is contained in:
parent
0759822f64
commit
d7b3454af3
2 changed files with 4 additions and 2 deletions
|
|
@ -34,7 +34,6 @@
|
|||
#include <sync/sync.h>
|
||||
|
||||
#include "anv_private.h"
|
||||
#include "vk_format_info.h"
|
||||
#include "vk_util.h"
|
||||
|
||||
static int anv_hal_open(const struct hw_module_t* mod, const char* id, struct hw_device_t** dev);
|
||||
|
|
@ -113,7 +112,7 @@ enum {
|
|||
AHARDWAREBUFFER_USAGE_CAMERA_MASK = 0x00060000U,
|
||||
};
|
||||
|
||||
static inline VkFormat
|
||||
inline VkFormat
|
||||
vk_format_from_android(unsigned android_format, unsigned android_usage)
|
||||
{
|
||||
switch (android_format) {
|
||||
|
|
|
|||
|
|
@ -3605,6 +3605,9 @@ bool anv_formats_ccs_e_compatible(const struct gen_device_info *devinfo,
|
|||
VkImageTiling vk_tiling,
|
||||
const VkImageFormatListCreateInfoKHR *fmt_list);
|
||||
|
||||
extern VkFormat
|
||||
vk_format_from_android(unsigned android_format, unsigned android_usage);
|
||||
|
||||
static inline struct isl_swizzle
|
||||
anv_swizzle_for_render(struct isl_swizzle swizzle)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue