diff options
author | Marek Olšák <[email protected]> | 2011-04-26 02:18:24 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-04-29 11:31:55 +0200 |
commit | 9d7698c468f4ea7da8bb4ec00520c98f11cca0fa (patch) | |
tree | da4a82690218f5a3c78f0961e4ca105ff3bc20ed /src/mesa/main/texformat.c | |
parent | 1d5f16ff8fae936f2e920800b169cf7736a8052a (diff) |
mesa: implement EXT_texture_shared_exponent
swrast support done.
There is no renderbuffer support in swrast, because it's not required
by the extension.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/texformat.c')
-rw-r--r-- | src/mesa/main/texformat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c index cbebec9aa57..3520f24382f 100644 --- a/src/mesa/main/texformat.c +++ b/src/mesa/main/texformat.c @@ -382,6 +382,16 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat, } } + if (ctx->Extensions.EXT_texture_shared_exponent) { + switch (internalFormat) { + case GL_RGB9_E5: + RETURN_IF_SUPPORTED(MESA_FORMAT_RGB9_E5_FLOAT); + break; + default: + ; /* fallthrough */ + } + } + if (ctx->Extensions.EXT_packed_depth_stencil) { switch (internalFormat) { case GL_DEPTH_STENCIL_EXT: |