[Mesa-dev] [PATCH v2 3/3] mesa: enable geom shaders in OpenGL 3.2 Compat profile
Timothy Arceri
tarceri at itsqueeze.com
Thu May 3 01:27:51 UTC 2018
On 03/05/18 10:49, Ilia Mirkin wrote:
> On Wed, May 2, 2018 at 7:21 PM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
>> On 03/05/18 02:58, Ilia Mirkin wrote:
>>>
>>> On Wed, May 2, 2018 at 6:27 AM, Timothy Arceri <tarceri at itsqueeze.com>
>>> wrote:
>>>>
>>>> ---
>>>> src/mapi/glapi/gen/apiexec.py | 4 ++--
>>>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/src/mapi/glapi/gen/apiexec.py
>>>> b/src/mapi/glapi/gen/apiexec.py
>>>> index b5e0ad4a179..d33cc85d47f 100644
>>>> --- a/src/mapi/glapi/gen/apiexec.py
>>>> +++ b/src/mapi/glapi/gen/apiexec.py
>>>> @@ -46,7 +46,7 @@ class exec_info():
>>>> if compatibility is not None:
>>>> assert isinstance(compatibility, int)
>>>> assert compatibility >= 10
>>>> - assert compatibility <= 30
>>>> + assert compatibility <= 46
>>>>
>>>> if core is not None:
>>>> assert isinstance(core, int)
>>>> @@ -70,7 +70,7 @@ functions = {
>>>> "TexBuffer": exec_info(compatibility=20, core=31, es2=31),
>>>>
>>>> # OpenGL 3.2 / GL_OES_geometry_shader.
>>>> - "FramebufferTexture": exec_info(core=32, es2=31),
>>>> + "FramebufferTexture": exec_info(compatibility=32, core=32, es2=31),
>>>
>>>
>>> Does it make sense to list out compat explicitly in the presence of
>>> core? Are there any core functions that aren't available in compat
>>> contexts of that version?
>>>
>>> IMHO it's worth changing the exec_info class to say
>>>
>>> if core and compatibility is None:
>>> compatibility = core
>>>
>>> ... or something along those lines.
>>
>>
>> If core and compatibility are none then compatibility = core is redundant.
>> I'm I missing something?
>
> If core is not none and compatibility is none...
As far as I understand it apiexec.py came about because of the need to
not expose functionality in compat. Always setting compat to core would
bi-pass that getting us back to where we started.
More information about the mesa-dev
mailing list