summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-22 01:11:13 +0100
committerMarek Olšák <[email protected]>2010-12-23 16:54:58 +0100
commitbb5ace68ce9e8bd171a39162ed6bd93632bd6619 (patch)
treeb9e09caf1c2a26ce0b770602143dc69b1f5565d1 /src/mesa/main/texstore.c
parenteb31837a0d4fa4fe115bb288ddb37cbedea954ae (diff)
mesa: implement new texture format L16
Diffstat (limited to 'src/mesa/main/texstore.c')
-rw-r--r--src/mesa/main/texstore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 107fbf1951b..e43636eafcb 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -2357,7 +2357,7 @@ _mesa_texstore_unorm1616(TEXSTORE_PARAMS)
}
-/* Texstore for R16, A16. */
+/* Texstore for R16, A16, L16. */
static GLboolean
_mesa_texstore_unorm16(TEXSTORE_PARAMS)
{
@@ -2366,7 +2366,8 @@ _mesa_texstore_unorm16(TEXSTORE_PARAMS)
const GLenum baseFormat = _mesa_get_format_base_format(dstFormat);
ASSERT(dstFormat == MESA_FORMAT_R16 ||
- dstFormat == MESA_FORMAT_A16);
+ dstFormat == MESA_FORMAT_A16 ||
+ dstFormat == MESA_FORMAT_L16);
ASSERT(texelBytes == 2);
if (!ctx->_ImageTransferState &&
@@ -4050,6 +4051,7 @@ texstore_funcs[MESA_FORMAT_COUNT] =
{ MESA_FORMAT_A8, _mesa_texstore_a8 },
{ MESA_FORMAT_A16, _mesa_texstore_unorm16 },
{ MESA_FORMAT_L8, _mesa_texstore_a8 },
+ { MESA_FORMAT_L16, _mesa_texstore_unorm16 },
{ MESA_FORMAT_I8, _mesa_texstore_a8 },
{ MESA_FORMAT_CI8, _mesa_texstore_ci8 },
{ MESA_FORMAT_YCBCR, _mesa_texstore_ycbcr },