[PATCH] RFC, weston: Use eglGetProcAddress to retrieve GLESv2 functions

Emil Velikov emil.l.velikov at gmail.com
Mon Sep 12 12:40:52 UTC 2016


On 12 September 2016 at 13:04, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 12 September 2016 at 12:11, Daniel Stone <daniel at fooishbar.org> wrote:
>> Hi Armin,
>>
>> On 10 September 2016 at 21:23, Armin Krezović <krezovic.armin at gmail.com> wrote:
>>> It appears that in current Mesa git master, GLESv2 function
>>> prototypes are hidden.
>>>
>>> Per Emil's suggestion on [1], use eglGetProcAdddress to get
>>> the functions and update the code to use such functions.
>>
>> NAK, Mesa is broken. It's right to use eglGetProcAddress for extension
>> functions, but using it for core functions makes code _less_ portable,
>> by requiring EGL_KHR_get_all_proc_addresses support.
>>
>> The Mesa change is broken and should be reverted.
>>
> I'm fine with either approach really. Although we need to poke Khronos
> who have broken this since 2015/06.
>
> On the mesa front: please don't revert the whole commit, but instead
> remove the spurious ifdef hunks
>
Just poked the Khronos folks and sent a patch for mesa.

Gents, don't be shy to report and/or send patches when you see
something odd with mesa.
Patching it in weston is ok for short term solution but (mesa/Khronos)
breaking things and expecting everyone to add workarounds in their
code is a serious no-go.

Thanks
Emil


More information about the wayland-devel mailing list