Mesa (master): egl: Enable 10bpc EGLConfigs for platform_{device,surfaceless}

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Sep 4 15:58:28 UTC 2019


Module: Mesa
Branch: master
Commit: 9acb94b6236f8a76a5558cf1cb60bac976067851
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9acb94b6236f8a76a5558cf1cb60bac976067851

Author: Adam Jackson <ajax at redhat.com>
Date:   Tue Sep  3 16:43:16 2019 -0400

egl: Enable 10bpc EGLConfigs for platform_{device,surfaceless}

It's somewhat annoying that these are so similar for so little benefit.

Reviewed-by: Eric Engestrom <eric.engestrom at intel.com>

---

 src/egl/drivers/dri2/platform_device.c      | 2 ++
 src/egl/drivers/dri2/platform_surfaceless.c | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/egl/drivers/dri2/platform_device.c b/src/egl/drivers/dri2/platform_device.c
index 9d3dbd5857f..9bd7a93270d 100644
--- a/src/egl/drivers/dri2/platform_device.c
+++ b/src/egl/drivers/dri2/platform_device.c
@@ -191,6 +191,8 @@ device_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp)
       int rgba_shifts[4];
       unsigned int rgba_sizes[4];
    } visuals[] = {
+      { "A2RGB10",  { 20, 10, 0, 30 }, { 10, 10, 10, 2 } },
+      { "X2RGB10",  { 20, 10, 0, -1 }, { 10, 10, 10, 0 } },
       { "ARGB8888", { 16, 8, 0, 24 }, { 8, 8, 8, 8 } },
       { "RGB888",   { 16, 8, 0, -1 }, { 8, 8, 8, 0 } },
       { "RGB565",   { 11, 5, 0, -1 }, { 5, 6, 5, 0 } },
diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index 13695a08765..d624533dcf3 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -185,6 +185,8 @@ surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp)
       int rgba_shifts[4];
       unsigned int rgba_sizes[4];
    } visuals[] = {
+      { "A2RGB10",  { 20, 10, 0, 30 }, { 10, 10, 10, 2 } },
+      { "X2RGB10",  { 20, 10, 0, -1 }, { 10, 10, 10, 0 } },
       { "ARGB8888", { 16, 8, 0, 24 }, { 8, 8, 8, 8 } },
       { "RGB888",   { 16, 8, 0, -1 }, { 8, 8, 8, 0 } },
       { "RGB565",   { 11, 5, 0, -1 }, { 5, 6, 5, 0 } },




More information about the mesa-commit mailing list