mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
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>
This commit is contained in:
parent
5e1aec6db0
commit
9286cbdd1e
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue