mesa: added MESA_FORMAT_SIGNED_RGBA_16 for accum buffers
authorBrian Paul <brianp@vmware.com>
Wed, 7 Oct 2009 01:00:09 +0000 (19:00 -0600)
committerBrian Paul <brianp@vmware.com>
Wed, 7 Oct 2009 01:00:09 +0000 (19:00 -0600)
src/mesa/main/formats.c
src/mesa/main/formats.h
src/mesa/main/texfetch.c
src/mesa/main/texstore.c

index d1d8491391255c51e3ba653e4501931f6032ac9e..a1a8ea88359c16e1fa48d70e27e68af5565a37a2 100644 (file)
@@ -540,7 +540,14 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
       0, 0, 0, 0, 0,
       1, 1, 4
    },
-
+   {
+      MESA_FORMAT_SIGNED_RGBA_16,
+      GL_RGBA,
+      GL_SIGNED_NORMALIZED,
+      16, 16, 16, 16,
+      0, 0, 0, 0, 0,
+      1, 1, 8
+   }
 };
 
 
index fcedbe9be212390609138d6e7cc79fd5c9756c4c..9da6d5d979577ae806b88ac7314f5146776b040f 100644 (file)
@@ -131,6 +131,7 @@ typedef enum
    MESA_FORMAT_DUDV8,
    MESA_FORMAT_SIGNED_RGBA8888,
    MESA_FORMAT_SIGNED_RGBA8888_REV,
+   MESA_FORMAT_SIGNED_RGBA_16,
    /*@}*/
 
    MESA_FORMAT_COUNT,
index fbb3170ff5d73f526f77cb23ac67ab8926878164..63b2eacf5524f9f4af50e0294db6ed131a04a972 100644 (file)
@@ -333,6 +333,13 @@ texfetch_funcs[MESA_FORMAT_COUNT] =
       fetch_texel_3d_signed_rgba8888_rev,
       store_texel_signed_rgba8888_rev
    },
+   {
+      MESA_FORMAT_SIGNED_RGBA_16,
+      NULL, /* XXX to do */
+      NULL,
+      NULL,
+      NULL
+   },
    {
       MESA_FORMAT_RGBA8888,
       fetch_texel_1d_f_rgba8888,
index 83e349d0103d6efc4b971f3b6d94fc3702d43fae..7754644da910b8ebd02e2c449c6278cdae002406 100644 (file)
@@ -3026,6 +3026,7 @@ texstore_funcs[MESA_FORMAT_COUNT] =
    { MESA_FORMAT_DUDV8, _mesa_texstore_dudv8 },
    { MESA_FORMAT_SIGNED_RGBA8888, _mesa_texstore_signed_rgba8888 },
    { MESA_FORMAT_SIGNED_RGBA8888_REV, _mesa_texstore_signed_rgba8888 },
+   { MESA_FORMAT_SIGNED_RGBA_16, NULL },
 };