summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_extensions.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-26 02:28:33 +0200
committerMarek Olšák <[email protected]>2011-04-29 11:31:55 +0200
commite62530a6c00da71c0f7bf1f4c425fe6c5b452df6 (patch)
tree8e6ba215cb7937df105ebf433495903ce2d408e1 /src/mesa/state_tracker/st_extensions.c
parent631d23daa91c569bf268a2191bd466df73a64263 (diff)
st/mesa: support EXT_packed_float
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 0ad1eda63c1..a5324df5549 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -582,4 +582,11 @@ void st_init_extensions(struct st_context *st)
PIPE_BIND_SAMPLER_VIEW)) {
ctx->Extensions.EXT_texture_shared_exponent = GL_TRUE;
}
+
+ if (screen->is_format_supported(screen, PIPE_FORMAT_R11G11B10_FLOAT,
+ PIPE_TEXTURE_2D, 0,
+ PIPE_BIND_RENDER_TARGET |
+ PIPE_BIND_SAMPLER_VIEW)) {
+ ctx->Extensions.EXT_packed_float = GL_TRUE;
+ }
}