summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-01-07 16:13:12 -0800
committerEric Anholt <[email protected]>2011-01-07 17:49:03 -0800
commit372dc4cd6c666c88bcf587202458cd73bda9a244 (patch)
treed377832ce57aa7cbb6185a8037c665d62e41402c /src/mesa/drivers
parenta7bf7230564ac282cc957207224d16f322fa73d8 (diff)
i915: Don't claim to support AL1616 when neither 830 nor 915 does it.
Fixes an abort in fbo-generatemipmap-formats.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/intel/intel_context.c3
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 34deb2c2fc9..2a5029964be 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