mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
tu: add OS guards to drm_format_mod
vk_image.h has these guards, and any non-{Linux}/{BSD}
compile would hit this issue.
The alternative is just to remove the OS-specific guards
in vk_image.h, since the modifier is just 64-bit opaque
number and theoretically can work on any OS, though the
non-Linux spec language is lacking.
Acked-by: Rob Clark <robdclark@freedesktop.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31453>
This commit is contained in:
parent
38ba3ea469
commit
e2388350f2
1 changed files with 2 additions and 0 deletions
|
|
@ -474,7 +474,9 @@ tu_image_update_layout(struct tu_device *device, struct tu_image *image,
|
|||
uint64_t modifier, const VkSubresourceLayout *plane_layouts)
|
||||
{
|
||||
enum a6xx_tile_mode tile_mode = TILE6_3;
|
||||
#if DETECT_OS_LINUX || DETECT_OS_BSD
|
||||
image->vk.drm_format_mod = modifier;
|
||||
#endif
|
||||
|
||||
if (modifier == DRM_FORMAT_MOD_LINEAR) {
|
||||
image->force_linear_tile = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue