Closed Bug 1182547 Opened 10 years ago Closed 10 years ago

Enable use of GetPlatformDisplayEXT and other client extensions in EGL

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: kyle_fung, Assigned: kyle_fung)

References

Details

Attachments

(1 file, 1 obsolete file)

We currently query for extensions after having made an EGLDisplay. Client extensions can be queried without creating a display by querying from EGL_NO_DISPLAY. We need to query for the client extension GetPlatformDisplayEXT without creating an EGLDisplay, so the way display creation is done has to be changed a bit to accommodate extensions that are to be queried without first creating a display.
Attached patch display-extensions.patch (obsolete) — Splinter Review
Modified the extension querying function to be able to query from different displays. Added support for ANGLE_platform_angle_d3d extension by importing GetPlatformDisplayEXT for EGL when the extension is available. Info about ANGLE_platform_angle_d3d: https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_platform_base.txt Info about client extensions (extensions that are display independent): https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_client_extensions.txt
Attachment #8632171 - Flags: review?(jmuizelaar)
Comment on attachment 8632171 [details] [diff] [review] display-extensions.patch Review of attachment 8632171 [details] [diff] [review]: ----------------------------------------------------------------- Seems reasonable to me. You should get jgilbert to do the actual review though.
Attachment #8632171 - Flags: review?(jmuizelaar)
Attachment #8632171 - Flags: review?(jgilbert)
Attachment #8632171 - Flags: feedback+
Comment on attachment 8632171 [details] [diff] [review] display-extensions.patch Review of attachment 8632171 [details] [diff] [review]: ----------------------------------------------------------------- ::: gfx/gl/GLLibraryEGL.h @@ +156,5 @@ > AFTER_GL_CALL; > return disp; > } > > + EGLDisplay fGetPlatformDisplayEXT(EGLenum platform, void *native_display, const EGLint *attrib_list) Star to left, against type.
Attachment #8632171 - Flags: review?(jgilbert) → review+
Fixed styling issue.
Attachment #8632171 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: