From 04d7d9f0e5e2d33d1f26ff1d2640341866c5cc7e Mon Sep 17 00:00:00 2001 From: Tom Englund Date: Wed, 8 Apr 2026 12:14:25 +0200 Subject: [PATCH] egl: add XRGB16161616F and ARGB16161616F to formats (#45) add two more 16fp formats. --- src/egl/Egl.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/egl/Egl.cpp b/src/egl/Egl.cpp index 57f0dfa..bb67d00 100644 --- a/src/egl/Egl.cpp +++ b/src/egl/Egl.cpp @@ -150,6 +150,26 @@ namespace Hyprgraphics::Egl { .bytesPerBlock = 4, .swizzle = {SWIZZLE_BGRA}, }, + { + .drmFormat = DRM_FORMAT_XRGB16161616F, + .glInternalFormat = GL_RGBA16F, + .glFormat = GL_RGBA, + .glType = GL_HALF_FLOAT, + .withAlpha = false, + .alphaStripped = DRM_FORMAT_XRGB16161616F, + .bytesPerBlock = 8, + .swizzle = {SWIZZLE_BGR1}, + }, + { + .drmFormat = DRM_FORMAT_ARGB16161616F, + .glInternalFormat = GL_RGBA16F, + .glFormat = GL_RGBA, + .glType = GL_HALF_FLOAT, + .withAlpha = true, + .alphaStripped = DRM_FORMAT_XRGB16161616F, + .bytesPerBlock = 8, + .swizzle = {SWIZZLE_BGRA}, + }, { .drmFormat = DRM_FORMAT_XBGR16161616F, .glInternalFormat = GL_RGBA16F,