mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 16:25:59 +01:00
formats: fixup for legacy_renderer builds
This commit is contained in:
parent
0e18da8467
commit
a9d7befc36
1 changed files with 62 additions and 32 deletions
|
@ -95,7 +95,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_XBGR2101010,
|
.drmFormat = DRM_FORMAT_XBGR2101010,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
||||||
|
#else
|
||||||
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV_EXT,
|
||||||
|
#endif
|
||||||
.withAlpha = false,
|
.withAlpha = false,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR2101010,
|
.alphaStripped = DRM_FORMAT_XBGR2101010,
|
||||||
.bytesPerBlock = 4,
|
.bytesPerBlock = 4,
|
||||||
|
@ -103,7 +107,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_ABGR2101010,
|
.drmFormat = DRM_FORMAT_ABGR2101010,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
||||||
|
#else
|
||||||
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV_EXT,
|
||||||
|
#endif
|
||||||
.withAlpha = true,
|
.withAlpha = true,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR2101010,
|
.alphaStripped = DRM_FORMAT_XBGR2101010,
|
||||||
.bytesPerBlock = 4,
|
.bytesPerBlock = 4,
|
||||||
|
@ -111,7 +119,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_XRGB2101010,
|
.drmFormat = DRM_FORMAT_XRGB2101010,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
||||||
|
#else
|
||||||
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV_EXT,
|
||||||
|
#endif
|
||||||
.withAlpha = false,
|
.withAlpha = false,
|
||||||
.alphaStripped = DRM_FORMAT_XRGB2101010,
|
.alphaStripped = DRM_FORMAT_XRGB2101010,
|
||||||
.bytesPerBlock = 4,
|
.bytesPerBlock = 4,
|
||||||
|
@ -119,7 +131,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_ARGB2101010,
|
.drmFormat = DRM_FORMAT_ARGB2101010,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV,
|
||||||
|
#else
|
||||||
|
.glType = GL_UNSIGNED_INT_2_10_10_10_REV_EXT,
|
||||||
|
#endif
|
||||||
.withAlpha = true,
|
.withAlpha = true,
|
||||||
.alphaStripped = DRM_FORMAT_XRGB2101010,
|
.alphaStripped = DRM_FORMAT_XRGB2101010,
|
||||||
.bytesPerBlock = 4,
|
.bytesPerBlock = 4,
|
||||||
|
@ -127,7 +143,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_XBGR16161616F,
|
.drmFormat = DRM_FORMAT_XBGR16161616F,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_HALF_FLOAT,
|
.glType = GL_HALF_FLOAT,
|
||||||
|
#else
|
||||||
|
.glType = GL_HALF_FLOAT_OES,
|
||||||
|
#endif
|
||||||
.withAlpha = false,
|
.withAlpha = false,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR16161616F,
|
.alphaStripped = DRM_FORMAT_XBGR16161616F,
|
||||||
.bytesPerBlock = 8,
|
.bytesPerBlock = 8,
|
||||||
|
@ -135,15 +155,22 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_ABGR16161616F,
|
.drmFormat = DRM_FORMAT_ABGR16161616F,
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA,
|
||||||
|
#ifndef GLES2
|
||||||
.glType = GL_HALF_FLOAT,
|
.glType = GL_HALF_FLOAT,
|
||||||
|
#else
|
||||||
|
.glType = GL_HALF_FLOAT_OES,
|
||||||
|
#endif
|
||||||
.withAlpha = true,
|
.withAlpha = true,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR16161616F,
|
.alphaStripped = DRM_FORMAT_XBGR16161616F,
|
||||||
.bytesPerBlock = 8,
|
.bytesPerBlock = 8,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_XBGR16161616,
|
.drmFormat = DRM_FORMAT_XBGR16161616,
|
||||||
.glInternalFormat = GL_RGBA16UI,
|
#ifndef GLES2
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA16UI,
|
||||||
|
#else
|
||||||
|
.glFormat = GL_RGBA16_EXT,
|
||||||
|
#endif
|
||||||
.glType = GL_UNSIGNED_SHORT,
|
.glType = GL_UNSIGNED_SHORT,
|
||||||
.withAlpha = false,
|
.withAlpha = false,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR16161616,
|
.alphaStripped = DRM_FORMAT_XBGR16161616,
|
||||||
|
@ -151,8 +178,11 @@ inline const std::vector<SPixelFormat> GLES3_FORMATS = {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.drmFormat = DRM_FORMAT_ABGR16161616,
|
.drmFormat = DRM_FORMAT_ABGR16161616,
|
||||||
.glInternalFormat = GL_RGBA16UI,
|
#ifndef GLES2
|
||||||
.glFormat = GL_RGBA,
|
.glFormat = GL_RGBA16UI,
|
||||||
|
#else
|
||||||
|
.glFormat = GL_RGBA16_EXT,
|
||||||
|
#endif
|
||||||
.glType = GL_UNSIGNED_SHORT,
|
.glType = GL_UNSIGNED_SHORT,
|
||||||
.withAlpha = true,
|
.withAlpha = true,
|
||||||
.alphaStripped = DRM_FORMAT_XBGR16161616,
|
.alphaStripped = DRM_FORMAT_XBGR16161616,
|
||||||
|
|
Loading…
Reference in a new issue