From fd8aa7ac71699facf9839e2ae56b5e37579c6bcc Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 22 Dec 2010 01:12:20 +0100 Subject: mesa: implement new texture format I16 --- src/mesa/main/texstore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/texstore.c') diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index e43636eafc..acb390b781 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 }, -- cgit v1.2.3