[client] egl: add support for EGL_EXT_image_dma_buf_import_modifiers

This commit is contained in:
Geoffrey McRae
2022-07-30 15:55:20 +10:00
parent eb1774f955
commit af51ea6d0b
3 changed files with 39 additions and 19 deletions

View File

@@ -28,17 +28,6 @@
#include "egldebug.h"
#include "egl_dynprocs.h"
/**
* the following comes from drm_fourcc.h and is included here to avoid the
* external dependency for the few simple defines we need
*/
#define fourcc_code(a, b, c, d) ((uint32_t)(a) | ((uint32_t)(b) << 8) | \
((uint32_t)(c) << 16) | ((uint32_t)(d) << 24))
#define DRM_FORMAT_ARGB8888 fourcc_code('A', 'R', '2', '4')
#define DRM_FORMAT_ABGR8888 fourcc_code('A', 'B', '2', '4')
#define DRM_FORMAT_BGRA1010102 fourcc_code('B', 'A', '3', '0')
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt)
{
switch(setup->pixFmt)