From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 103575] eglQueryDevicesEXT returns 0 devices Date: Thu, 30 Nov 2017 15:04:30 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1401391564==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 483066E09A for ; Thu, 30 Nov 2017 15:04:30 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1401391564== Content-Type: multipart/alternative; boundary="15120542700.aa5bAAbAa.2057"; charset="UTF-8" --15120542700.aa5bAAbAa.2057 Date: Thu, 30 Nov 2017 15:04:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D103575 --- Comment #3 from Adam Jackson --- (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. >=20 > 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 front= end 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). --=20 You are receiving this mail because: You are the assignee for the bug.= --15120542700.aa5bAAbAa.2057 Date: Thu, 30 Nov 2017 15:04:30 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 3 on bug 10357= 5 from Adam Jackson
(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 is=
n't
> > entirely surprising.
>=20
> 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 front=
end
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.
= --15120542700.aa5bAAbAa.2057-- --===============1401391564== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1401391564==--