summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/formats.h
diff options
context:
space:
mode:
authorFrancisco Jerez <currojerez@riseup.net>2013-11-22 19:49:58 -0800
committerFrancisco Jerez <currojerez@riseup.net>2014-01-15 16:42:07 +0100
commit7510c10209d95458ededf01234b644bf2020d768 (patch)
tree817d5a1b7d5cde0579746a2a081a0d10b2f8820f /src/mesa/main/formats.h
parent87942749a327725014b0d160b3e48d6d83723ac2 (diff)
downloadexternal_mesa3d-7510c10209d95458ededf01234b644bf2020d768.zip
external_mesa3d-7510c10209d95458ededf01234b644bf2020d768.tar.gz
external_mesa3d-7510c10209d95458ededf01234b644bf2020d768.tar.bz2
mesa: Add MESA_FORMAT_SIGNED_RG88 and _RG1616.
Including pack/unpack and texstore code. ARB_shader_image_load_store requires support for the GL_RG8_SNORM and GL_RG16_SNORM formats, which map to MESA_FORMAT_SIGNED_GR88 and MESA_FORMAT_SIGNED_GR1616 on little-endian hosts, and MESA_FORMAT_SIGNED_RG88 and MESA_FORMAT_SIGNED_RG1616 respectively on big-endian hosts -- only the former were already present, add support for the latter. Acked-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Paul Berry <stereotype441@gmail.com>
Diffstat (limited to 'src/mesa/main/formats.h')
-rw-r--r--src/mesa/main/formats.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/formats.h b/src/mesa/main/formats.h
index f96c18a..a1f0d22 100644
--- a/src/mesa/main/formats.h
+++ b/src/mesa/main/formats.h
@@ -306,6 +306,9 @@ typedef enum
MESA_FORMAT_ABGR2101010,
+ MESA_FORMAT_SIGNED_RG88,
+ MESA_FORMAT_SIGNED_RG1616,
+
MESA_FORMAT_COUNT
} gl_format;