dmabuf: Add DRM_FORMAT_MOD_INVALID to our formats

That's gonna be necessary for the next commits.
This commit is contained in:
Benjamin Otte 2024-04-29 13:25:37 +02:00 committed by Benjamin Otte
parent 668628941e
commit cf84d999d8

View File

@ -5,6 +5,10 @@
#include <drm_fourcc.h>
#endif
#ifndef DRM_FORMAT_MOD_INVALID
#define DRM_FORMAT_MOD_INVALID ((1ULL << 56) - 1)
#endif
#ifndef fourcc_code
#define fourcc_code(a, b, c, d) ((__u32)(a) | ((__u32)(b) << 8) | \
((__u32)(c) << 16) | ((__u32)(d) << 24))