From: Adam Jackson Date: Tue, 3 Sep 2019 20:43:16 +0000 (-0400) Subject: egl: Enable 10bpc EGLConfigs for platform_{device,surfaceless} X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9acb94b6236f8a76a5558cf1cb60bac976067851;p=mesa.git 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 --- 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 } },