[Mesa-dev] [PATCH 1/2] dri: Support depth-15 Visuals

Chris Wilson chris at chris-wilson.co.uk
Mon Mar 4 05:41:05 PST 2013


Note: This is a candidate for the stable branches.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 src/mesa/drivers/dri/common/utils.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/drivers/dri/common/utils.c b/src/mesa/drivers/dri/common/utils.c
index ac0773b..41cab13 100644
--- a/src/mesa/drivers/dri/common/utils.c
+++ b/src/mesa/drivers/dri/common/utils.c
@@ -189,6 +189,8 @@ driCreateConfigs(gl_format format,
       { 0x00FF0000, 0x0000FF00, 0x000000FF, 0x00000000 },
       /* MESA_FORMAT_ARGB8888 */
       { 0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000 },
+      /* MESA_FORMAT_ARGB1555 */
+      { 0x00007c00, 0x000003E0, 0x0000001F, 0x00008000 },
    };
 
    const uint32_t * masks;
@@ -204,6 +206,9 @@ driCreateConfigs(gl_format format,
    bool is_srgb;
 
    switch (format) {
+   case MESA_FORMAT_ARGB1555:
+      masks = masks_table[3];
+      break;
    case MESA_FORMAT_RGB565:
       masks = masks_table[0];
       break;
-- 
1.7.10.4



More information about the mesa-dev mailing list