[Mesa-dev] [PATCH 1/4] mesa: add INTEL_blackhole_render

Emil Velikov emil.l.velikov at gmail.com
Thu Mar 15 18:11:26 UTC 2018


On 15 March 2018 at 16:08, Lionel Landwerlin
<lionel.g.landwerlin at intel.com> wrote:
> On 15/03/18 16:03, Emil Velikov wrote:
>>
>> HI Lionel,
>>
>> On 15 March 2018 at 14:24, Lionel Landwerlin
>> <lionel.g.landwerlin at intel.com> wrote:
>>>
>>> Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
>>> ---
>>>   include/GL/glext.h               |  5 +++++
>>>   include/GLES2/gl2ext.h           |  5 +++++
>>>   src/mapi/glapi/registry/gl.xml   |  8 +++++++-
>>
>> Please update these by pulling the latest files from Khronos. See git
>> log for examples.
>
>
> A few differences from the Khronos files made me think that we didn't pull
> files directly.
> Will change this.
>
>>
>>> +EXT(INTEL_blackhole_render                  , INTEL_blackhole_render
>>> , GLL, GLC,  x , ES2, 2018)
>>
>> Spec says "OpenGL 3.0 is required" so GLL + GLC should become 30
>
>
> Thanks, I'm never sure about those things :(
>
>> Wrt GLES side the spec does not mention anything - is that ES1, ES2,
>> which version etc.
>> Worth keeping it simple and update the spec to say ES2+?
>
>
> ES2+ indeed.
>
>>
>> The patch implements Enable/Disable, yet IsEnabled is missing.
>
>
> Oops... I thought that was autogenerated for some reason :/
>
The glGet* are autogenerated and the _mesa_enum_to_string.
Latter of which requires an xml file (or updating an existing one).

Mildly related:
Having a quick look at our enable.c and get.c code - there plenty of
places where we handroll the _mesa_has_$EXTENSION checks.
The commit 60330d730bc82fb602fd27a189970c91a55f3920 introduces glGet
support, where the spec lists glEnable, glDisable and glIsEnabled

HTH
Emil


More information about the mesa-dev mailing list