egl: Enable 10bpc EGLConfigs for platform_{device,surfaceless}
authorAdam Jackson <ajax@redhat.com>
Tue, 3 Sep 2019 20:43:16 +0000 (16:43 -0400)
committerAdam Jackson <ajax@redhat.com>
Wed, 4 Sep 2019 15:39:57 +0000 (11:39 -0400)
It's somewhat annoying that these are so similar for so little benefit.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/egl/drivers/dri2/platform_device.c
src/egl/drivers/dri2/platform_surfaceless.c

index 9d3dbd5857f3872b446c2e91740d473e855301a6..9bd7a93270de144324f194f2624a09e85686bcef 100644 (file)
@@ -191,6 +191,8 @@ device_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp)
       int rgba_shifts[4];
       unsigned int rgba_sizes[4];
    } visuals[] = {
       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 } },
       { "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 } },
index 13695a08765f4c1e1c28a0f05b057586914654c2..d624533dcf35aad139f8152532189d7b7c28d5c5 100644 (file)
@@ -185,6 +185,8 @@ surfaceless_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *disp)
       int rgba_shifts[4];
       unsigned int rgba_sizes[4];
    } visuals[] = {
       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 } },
       { "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 } },