Summary: | eglQueryDevicesEXT returns 0 devices | ||
---|---|---|---|
Product: | Mesa | Reporter: | Hi-Angel <Hi-Angel> |
Component: | Drivers/Gallium/r600 | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED NOTABUG | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | ||
Version: | 17.2 | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Hi-Angel
2017-11-05 01:48:32 UTC
Mesa doesn't implement EGL_EXT_device_enumeration yet, so this isn't entirely surprising. (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? (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). (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? Linking - yes things should fail fail at linking. The spec clearly says that one should use eglGetProcAddress to get the function pointers. Runtime - nope. The extension defines the means, a device is not guaranteed. Also ... I really hope that Nvidia fixes that blog - it contains a number of fairly fundamental issues. I reached out to the author ~1year ago listing all the bad stuff but never heard back :-\ Oh well (In reply to Emil Velikov from comment #4) > Also ... I really hope that Nvidia fixes that blog - it contains a number of > fairly fundamental issues. > I reached out to the author ~1year ago listing all the bad stuff but never > heard back :-\ Oh well You may copy-paste the content of that mail into blog comments, I think readers would appreciate. Comments were the first thing I started reading after looking through the post to see any possible caveats. |
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.