Bug 84805

Summary: DEF files missing for GLES1/GLES2
Product: Mesa Reporter: Charles Huber <genpfault>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium CC: jfonseca
Version: git   
Hardware: x86 (IA32)   
OS: Windows (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Add DEF files for GLES1/GLES2
Add DEF files for GLES1/GLES2, take 2
Add DEF files for GLES1/GLES2, take 3

Description Charles Huber 2014-10-08 15:13:35 UTC
Created attachment 107558 [details]
Add DEF files for GLES1/GLES2

GLES1 and GLES2 are missing DEF files for their respective DLLs.
Comment 1 Matt Turner 2014-10-08 15:35:34 UTC
I assume you copied the list of functions from the ABI-check scripts. Those lists contain more than what you actually want to export. See the FIXME comments at the top. For instance, glMultiDrawArraysEXT shouldn't be exported.
Comment 2 Charles Huber 2014-10-08 16:03:46 UTC
I just took the existing decorated exports (via 'dumpbin /exports') and stripped the prefix/suffixes.
Comment 3 Charles Huber 2014-10-08 16:24:12 UTC
Created attachment 107563 [details] [review]
Add DEF files for GLES1/GLES2, take 2

This time around I took the exports directly from GLES/gl.h and GLES2/gl2.h.
Comment 4 Charles Huber 2015-04-10 16:12:45 UTC
Created attachment 115005 [details] [review]
Add DEF files for GLES1/GLES2, take 3

Threw in the GLES3 symbols too.
Comment 5 Jose Fonseca 2015-04-10 19:37:35 UTC
Does this really work on Windows?

I thought that now that we removed st/egl from Mesa, EGL would be totally broken. I was actually planing to stop building EGL on Windows.


My recommendation to use GLES1/GLES2 on Windows would be to use the wgl_ext_create_context_es2_profile with the opengl32.dll we provide.
Comment 6 Charles Huber 2015-04-20 14:14:12 UTC
Still working as of cb154bb22116910c462f7a83f4401bd01e15c34d
Comment 7 Jose Fonseca 2015-04-20 15:12:07 UTC
(In reply to Charles Huber from comment #6)
> Still working as of cb154bb22116910c462f7a83f4401bd01e15c34d

That's 10.4 branch.

I think this has been broken apart in master:

  http://cgit.freedesktop.org/mesa/mesa/commit/?id=5564c361b5cc1f5ec4be3622d7f9be601e3c268a

There were two EGL implementations: a DRI Linux-specific one, and a cross-platform one, but nobody was interested in maintaining the later one.

I wonder if you truly need EGL on Windows, or WGL_EXT_create_context_es_profile could meet your needs.  Even if you truly need EGL on Windows, I'm afraid that unless somebody is willing to maintain it, it's not going to come back to life...



In short, the patch you proposed only makes sense in the 10.4 branch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.