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

Stéphane Marchesin marcheu at chromium.org
Wed Apr 4 23:10:31 UTC 2018


On Tue, Apr 3, 2018 at 6:49 AM, Jakob Bornecrantz <jakob at collabora.com> wrote:
> 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.

I'm not going to do it; I have many other things on my plate, and I
will probably take a step back from virgil work for a bit until I
catch up. Of course the rest of the team is still working on this :)

Stéphane

>
> 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