Opened 4 years ago

Last modified 3 years ago

#54236 new enhancement

port:mesa & port:libepoxy : provide and support EGL

Reported by: RJVB (René Bertin) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: jeremyhu (Jeremy Huddleston Sequoia), dbevans (David B. Evans), gnw3
Port: mesa libepoxy

Description

A couple of patches to enable the building of (support for) EGL in port:mesa and port:libepoxy .

Not actually tested yet, but libEGL builds with only a source-level patch to replace some clock_gettime() functionality with (close) equivalents. Which may not even be required on 10.12 and up .

Attachments (5)

mesa.diff (847 bytes) - added by RJVB (René Bertin) 4 years ago.
patch-support-egl_dri2.diff (1.5 KB) - added by RJVB (René Bertin) 4 years ago.
patch-support-egl.diff (631 bytes) - added by RJVB (René Bertin) 4 years ago.
libepoxy.diff (586 bytes) - added by RJVB (René Bertin) 4 years ago.
mesa-egl.diff (4.6 KB) - added by RJVB (René Bertin) 3 years ago.
update for mesa 17.1.6

Download all attachments as: .zip

Change History (7)

Changed 4 years ago by RJVB (René Bertin)

Attachment: mesa.diff added

Changed 4 years ago by RJVB (René Bertin)

Attachment: patch-support-egl_dri2.diff added

Changed 4 years ago by RJVB (René Bertin)

Attachment: patch-support-egl.diff added

Changed 4 years ago by RJVB (René Bertin)

Attachment: libepoxy.diff added

comment:1 Changed 4 years ago by gnw3

Cc: gnw3 added

Changed 3 years ago by RJVB (René Bertin)

Attachment: mesa-egl.diff added

update for mesa 17.1.6

comment:2 Changed 3 years ago by RJVB (René Bertin)

I've attached an update for Mesa 17.1.6 which also adds +llvmXY variants allowing to build the gallium swrast driver.

The main interest here is probably that this allows certain X11 applications to render to remote displays despite the Xquartz lack of GLX support. For instance, after building Qt5 for xcb, applications that require shared OpenGL contexts or similar less common features will fail on startup with a "failed to initialise GLX" error. When using EGL instead they will run normally.

Note: See TracTickets for help on using tickets.