summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-03-28 20:59:13 -0400
committerIlia Mirkin <imirkin@alum.mit.edu>2016-03-29 10:15:21 -0400
commit9286cbdd1e2b0ef32db61f0fb4915ea2948ad4cd (patch)
treee3f7dd227936529e877d535c73c33b92acd56839 /src/mesa/state_tracker
parent5e1aec6db073416ae6ddf0eeaaea4964b489af8e (diff)
downloadexternal_mesa3d-9286cbdd1e2b0ef32db61f0fb4915ea2948ad4cd.zip
external_mesa3d-9286cbdd1e2b0ef32db61f0fb4915ea2948ad4cd.tar.gz
external_mesa3d-9286cbdd1e2b0ef32db61f0fb4915ea2948ad4cd.tar.bz2
st/mesa: enable OES_texture_buffer when all components available
OES_texture_buffer combines bits from a number of desktop extensions. When they're all available, turn it on. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/mesa/state_tracker')
-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 44d93e3..36a1201 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -1016,6 +1016,12 @@ void st_init_extensions(struct pipe_screen *screen,
PIPE_BIND_SAMPLER_VIEW);
}
+ extensions->OES_texture_buffer =
+ extensions->ARB_texture_buffer_object &&
+ extensions->ARB_texture_buffer_range &&
+ extensions->ARB_texture_buffer_object_rgb32 &&
+ extensions->ARB_shader_image_load_store;
+
/* Unpacking a varying in the fragment shader costs 1 texture indirection.
* If the number of available texture indirections is very limited, then we
* prefer to disable varying packing rather than run the risk of varying