Mesa (master): intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.

Eric Anholt anholt at kemper.freedesktop.org
Thu Dec 9 22:42:09 UTC 2010


Module: Mesa
Branch: master
Commit: b4e8ec3a57c28c0881fb5b595116f95b8cbe3f02
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b4e8ec3a57c28c0881fb5b595116f95b8cbe3f02

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Dec  9 13:45:47 2010 -0800

intel: Use plain R8 and RG8 for COMPRESSED_RED and COMPRESSED_RG.

Fixes texture-rg.

---

 src/mesa/drivers/dri/intel/intel_tex_format.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_tex_format.c b/src/mesa/drivers/dri/intel/intel_tex_format.c
index 9d73a2f..f8316ae 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_format.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_format.c
@@ -204,11 +204,13 @@ intelChooseTextureFormat(struct gl_context * ctx, GLint internalFormat,
     * { R, G, 1.0, 1.0 } from a red-green texture would be useful.
     */
    case GL_RED:
+   case GL_COMPRESSED_RED:
    case GL_R8:
       return MESA_FORMAT_R8;
    case GL_R16:
       return MESA_FORMAT_R16;
    case GL_RG:
+   case GL_COMPRESSED_RG:
    case GL_RG8:
       return MESA_FORMAT_RG88;
    case GL_RG16:




More information about the mesa-commit mailing list