aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-22 01:12:20 +0100
committerMarek Olšák <[email protected]>2010-12-23 16:54:58 +0100
commitfd8aa7ac71699facf9839e2ae56b5e37579c6bcc (patch)
treec47179613e19630bbd95d7594f75edca64814864 /src/mesa/main/texstore.c
parentbb5ace68ce9e8bd171a39162ed6bd93632bd6619 (diff)
mesa: implement new texture format I16
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 e43636eafcb..acb390b7810 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, L16. */
+/* Texstore for R16, A16, L16, I16. */
static GLboolean
_mesa_texstore_unorm16(TEXSTORE_PARAMS)
{
@@ -2367,7 +2367,8 @@ _mesa_texstore_unorm16(TEXSTORE_PARAMS)
ASSERT(dstFormat == MESA_FORMAT_R16 ||
dstFormat == MESA_FORMAT_A16 ||
- dstFormat == MESA_FORMAT_L16);
+ dstFormat == MESA_FORMAT_L16 ||
+ dstFormat == MESA_FORMAT_I16);
ASSERT(texelBytes == 2);
if (!ctx->_ImageTransferState &&
@@ -4053,6 +4054,7 @@ texstore_funcs[MESA_FORMAT_COUNT] =
{ MESA_FORMAT_L8, _mesa_texstore_a8 },
{ MESA_FORMAT_L16, _mesa_texstore_unorm16 },
{ MESA_FORMAT_I8, _mesa_texstore_a8 },
+ { MESA_FORMAT_I16, _mesa_texstore_unorm16 },
{ MESA_FORMAT_CI8, _mesa_texstore_ci8 },
{ MESA_FORMAT_YCBCR, _mesa_texstore_ycbcr },
{ MESA_FORMAT_YCBCR_REV, _mesa_texstore_ycbcr },