aboutsummaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2019-09-03 16:43:16 -0400
committerAdam Jackson <[email protected]>2019-09-04 11:39:57 -0400
commit9acb94b6236f8a76a5558cf1cb60bac976067851 (patch)
tree7fafb88eb054844423b89b7ce14a2f784b651b60 /src/egl
parent95927c414fffaba64536f3b9389a4387007e9b32 (diff)
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 <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_device.c2
-rw-r--r--src/egl/drivers/dri2/platform_surfaceless.c2
2 files changed, 4 insertions, 0 deletions
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 } },