diff options
author | Eric Anholt <[email protected]> | 2011-09-20 15:14:53 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-09-22 10:58:34 -0700 |
commit | 2fd8c4e3edf989c6f7dd1261a67b01f06979feab (patch) | |
tree | 91b0d7aed62b303c2080fb68f557519cb1db9a6c /src/mesa/drivers/dri/intel | |
parent | 9e9a76eea17bc92c8ac74323c99e10b9480ee583 (diff) |
i965: Add support for GL_EXT_texture_shared_exponent.
Only one failure in piglit on gen6, which is texwrap with bordercolor
(as usual).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_context.c | 3 | ||||
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_extensions.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 2589ee54a2e..ada503fff41 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/src/mesa/drivers/dri/intel/intel_context.c @@ -730,6 +730,9 @@ intelInitContext(struct intel_context *intel, ctx->TextureFormatSupported[MESA_FORMAT_LUMINANCE_FLOAT32] = GL_TRUE; ctx->TextureFormatSupported[MESA_FORMAT_ALPHA_FLOAT32] = GL_TRUE; ctx->TextureFormatSupported[MESA_FORMAT_LUMINANCE_ALPHA_FLOAT32] = GL_TRUE; + + /* GL_EXT_texture_shared_exponent */ + ctx->TextureFormatSupported[MESA_FORMAT_RGB9_E5_FLOAT] = GL_TRUE; #endif #endif /* !I915 */ diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c index 5c3442a2b7b..43f0d83f14d 100644 --- a/src/mesa/drivers/dri/intel/intel_extensions.c +++ b/src/mesa/drivers/dri/intel/intel_extensions.c @@ -132,6 +132,7 @@ intelInitExtensions(struct gl_context *ctx) ctx->Extensions.ARB_shader_texture_lod = true; #ifdef TEXTURE_FLOAT_ENABLED ctx->Extensions.ARB_texture_float = true; + ctx->Extensions.EXT_texture_shared_exponent = true; #endif ctx->Extensions.ARB_texture_compression_rgtc = true; ctx->Extensions.ARB_texture_rg = true; |