mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-26 07:17:23 +00:00
[client] egl: fix fourcc for RGBA10 dmabuf
This commit is contained in:
parent
7c1bb13d70
commit
a629d24dc3
@ -53,7 +53,7 @@ bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt)
|
|||||||
fmt->format = GL_RGBA;
|
fmt->format = GL_RGBA;
|
||||||
fmt->intFormat = GL_RGB10_A2;
|
fmt->intFormat = GL_RGB10_A2;
|
||||||
fmt->dataType = GL_UNSIGNED_INT_2_10_10_10_REV;
|
fmt->dataType = GL_UNSIGNED_INT_2_10_10_10_REV;
|
||||||
fmt->fourcc = DRM_FORMAT_BGRA1010102;
|
fmt->fourcc = DRM_FORMAT_BGRA2101010;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EGL_PF_RGBA16F:
|
case EGL_PF_RGBA16F:
|
||||||
|
@ -64,7 +64,7 @@ void egl_texUtilUnmapBuffer(EGL_TexBuffer * buffer);
|
|||||||
((uint32_t)(c) << 16) | ((uint32_t)(d) << 24))
|
((uint32_t)(c) << 16) | ((uint32_t)(d) << 24))
|
||||||
#define DRM_FORMAT_ARGB8888 fourcc_code('A', 'R', '2', '4')
|
#define DRM_FORMAT_ARGB8888 fourcc_code('A', 'R', '2', '4')
|
||||||
#define DRM_FORMAT_ABGR8888 fourcc_code('A', 'B', '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_BGRA2101010 fourcc_code('A', 'B', '3', '0')
|
||||||
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
|
#define DRM_FORMAT_ABGR16161616F fourcc_code('A', 'B', '4', 'H')
|
||||||
|
|
||||||
#define DRM_FORMAT_MOD_VENDOR_NONE 0
|
#define DRM_FORMAT_MOD_VENDOR_NONE 0
|
||||||
|
Loading…
Reference in New Issue
Block a user