summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-26 02:23:33 +0200
committerMarek Olšák <[email protected]>2011-04-29 11:31:55 +0200
commit1da44f5923c5715d78a48dc300bbc6cbd3f3ea99 (patch)
tree68942850bfaa53f52a8d7859437a41fb307692cd /src/mesa/state_tracker/st_extensions.c
parent9d7698c468f4ea7da8bb4ec00520c98f11cca0fa (diff)
st/mesa: support EXT_texture_shared_exponent
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_extensions.c')
-rw-r--r--src/mesa/state_tracker/st_extensions.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 339e00d309c..0ad1eda63c1 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -576,4 +576,10 @@ void st_init_extensions(struct st_context *st)
if (st->pipe->texture_barrier) {
ctx->Extensions.NV_texture_barrier = GL_TRUE;
}
+
+ if (screen->is_format_supported(screen, PIPE_FORMAT_R9G9B9E5_FLOAT,
+ PIPE_TEXTURE_2D, 0,
+ PIPE_BIND_SAMPLER_VIEW)) {
+ ctx->Extensions.EXT_texture_shared_exponent = GL_TRUE;
+ }
}