Mesa (master): i915: Don' t claim to support AL1616 when neither 830 nor 915 does it.

Eric Anholt anholt at kemper.freedesktop.org
Sat Jan 8 01:53:47 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Jan  7 16:13:12 2011 -0800

i915: Don't claim to support AL1616 when neither 830 nor 915 does it.

Fixes an abort in fbo-generatemipmap-formats.

---

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

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 34deb2c..2a50299 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -695,7 +695,8 @@ intelInitContext(struct intel_context *intel,
    ctx->TextureFormatSupported[MESA_FORMAT_A8] = GL_TRUE;
    ctx->TextureFormatSupported[MESA_FORMAT_I8] = GL_TRUE;
    ctx->TextureFormatSupported[MESA_FORMAT_AL88] = GL_TRUE;
-   ctx->TextureFormatSupported[MESA_FORMAT_AL1616] = GL_TRUE;
+   if (intel->gen >= 4)
+      ctx->TextureFormatSupported[MESA_FORMAT_AL1616] = GL_TRUE;
    ctx->TextureFormatSupported[MESA_FORMAT_S8_Z24] = GL_TRUE;
    /*
     * This was disabled in initial FBO enabling to avoid combinations




More information about the mesa-commit mailing list