[Mesa-dev] [PATCH] st/mesa: enable OES_texture_buffer when all components available
Marek Olšák
maraeo at gmail.com
Tue Mar 29 09:47:10 UTC 2016
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Tue, Mar 29, 2016 at 3:00 AM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> 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 at alum.mit.edu>
> ---
> src/mesa/state_tracker/st_extensions.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index e26f13d..c0939c0 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -1033,6 +1033,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
> --
> 2.7.3
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list