diff options
author | Adam Jackson <[email protected]> | 2019-09-03 16:43:16 -0400 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2019-09-04 11:39:57 -0400 |
commit | 9acb94b6236f8a76a5558cf1cb60bac976067851 (patch) | |
tree | 7fafb88eb054844423b89b7ce14a2f784b651b60 /src | |
parent | 95927c414fffaba64536f3b9389a4387007e9b32 (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')
-rw-r--r-- | src/egl/drivers/dri2/platform_device.c | 2 | ||||
-rw-r--r-- | src/egl/drivers/dri2/platform_surfaceless.c | 2 |
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 } }, |