mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 14:40:56 +00:00
Add fourcc_mod_is_vendor() definition for older headers
This commit is contained in:
@@ -53,6 +53,15 @@ extern "C" {
|
|||||||
#define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V')
|
#define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V')
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Upstreamed modifier macros (5.16+)
|
||||||
|
#ifndef fourcc_mod_get_vendor
|
||||||
|
#define fourcc_mod_get_vendor(modifier) (((modifier) >> 56) & 0xff)
|
||||||
|
#endif
|
||||||
|
#ifndef fourcc_mod_is_vendor
|
||||||
|
#define fourcc_mod_is_vendor(modifier, vendor) \
|
||||||
|
(fourcc_mod_get_vendor(modifier) == DRM_FORMAT_MOD_VENDOR_## vendor)
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user