From 9acb94b6236f8a76a5558cf1cb60bac976067851 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 3 Sep 2019 16:43:16 -0400 Subject: [PATCH] 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 --- 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 } }, -- 2.30.2