[virglrenderer-devel] [PATCH] vrend: Add more caps for gles

Jakob Bornecrantz jakob at collabora.com
Tue Apr 3 13:49:44 UTC 2018


On 2018-03-31 03:12, Stéphane Marchesin wrote:
> This adds texture array and primitive restart caps which are
> available on gles3.
> 
> Signed-off-by: Stéphane Marchesin <marcheu at chromium.org>

Thanks, patch has been reviewed, tested and pushed.

I'll I just sent out one for GL_ARB_uniform_buffer_object, if you are 
not doing it I'm going to look at the other extensions as well.

Cheers, Jakob.

> ---
>   src/vrend_renderer.c | 7 +++++++
>   1 file changed, 7 insertions(+)
> 
> diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
> index 4a0e61c..6838e01 100644
> --- a/src/vrend_renderer.c
> +++ b/src/vrend_renderer.c
> @@ -6577,6 +6577,7 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
>      GLint max;
>      GLfloat range[2];
>      bool fill_capset2 = false;
> +   int gles_ver = epoxy_gl_version();
>   
>      if (set == 2) {
>         fill_capset2 = true;
> @@ -6623,6 +6624,12 @@ void vrend_renderer_fill_caps_gles(uint32_t set, uint32_t version,
>   
>      caps->v1.max_viewports = 1;
>   
> +   if (gles_ver >= 30) {
> +      glGetIntegerv(GL_MAX_ARRAY_TEXTURE_LAYERS, &max);
> +      caps->v1.max_texture_array_layers = max;
> +      caps->v1.bset.primitive_restart = 1;
> +   }
> +
>      if (!fill_capset2) {
>         return;
>      }
> 



More information about the virglrenderer-devel mailing list