[Bug 103575] eglQueryDevicesEXT returns 0 devices

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Nov 30 15:04:30 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103575

--- Comment #3 from Adam Jackson <ajax at nwnk.net> ---
(In reply to Hi-Angel from comment #2)
> (In reply to Adam Jackson from comment #1)
> > Mesa doesn't implement EGL_EXT_device_enumeration yet, so this isn't
> > entirely surprising.
> 
> Then, shouldn't I be getting either linking or calling errors?

If your libEGL is from libglvnd then no. glvnd has explicit support for
QueryDevicesEXT because it has to aggregate the results from all installed
vendor libraries. Which means eglGetProcAddress will return the glvnd frontend
function, even if no vendors support the extension.

That's arguably a bug in glvnd. It should at minimum return an error if it
enumerates zero devices, I think. But I think your code is already in error in
calling eglQueryDevicesEXT without checking that EGL_EXT_device_enumeration is
in the client extension string (it certainly isn't on my machine, which does
use libglvnd).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20171130/9b940635/attachment.html>


More information about the dri-devel mailing list