From: bugzilla-daemon@freedesktop.org Subject: [Bug 105256] Slow performance using glDrawElementsBaseVertex Date: Mon, 26 Feb 2018 20:05:25 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1436082637==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id E437E6E516 for ; Mon, 26 Feb 2018 20:05:24 +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 --===============1436082637== Content-Type: multipart/alternative; boundary="15196755241.A65Eb7527.5858" Content-Transfer-Encoding: 7bit --15196755241.A65Eb7527.5858 Date: Mon, 26 Feb 2018 20:05:24 +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=3D105256 Roland Scheidegger changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NOTABUG |FIXED --- Comment #4 from Roland Scheidegger --- (In reply to Logan McNaughton from comment #2) > Interesting, is this documented somewhere? How do you know what data form= ats > the HW supports? Is there any other hardware besides these cards that don= 't > support it? >=20 > I'll have the users test using GL_UNSIGNED_SHORT I'm not sure if AMD (or ATI) had some perf guides published where this was stated. You can, however, see this from the published register guides - https://developer.amd.com/resources/developer-guides-manuals/ It says VGT_INDEX_16 and VGT_INDEX_32 as valid values for VGT_DMA_INDEX_TYPE (for evergreen, others should be similar), interestingly however it's alrea= dy a 2-bit value there. (Actually the register guides only seem to go up to Sea Islands, so you can= 't even see that it is supported starting with VI.) A look at the mesa driver is probably easier though :-). This should affect= all amd/ati hw up to Sea Islands. Of course, if you use old-school non-vbo elem= ent data, it's probably no big deal. At a very quick glance at the driver code, it looks like newer nvidia chips= can handle it (everything from g80). nv30/nv40 cannot, but there it looks like = nv30 will emulate index buffers anyway, so the only chips which this might make a difference is nv40 family. Looks like all intel chips can handle it fine. That said, even if the slowdown is due to this, I'm not convinced the driver couldn't do better (though it does not look trivial to do better). But it's= one of the features which noone really expects to get used, therefore it's good enough as long as it works correctly... You can't query this afaik and just have to know... Apparently using GL_UNSIGNED_BYTE indices was simply broken at some point with windows drive= rs too - it's possible the blob implements a more sophisticated emulation strategy: https://community.amd.com/thread/159040 --=20 You are receiving this mail because: You are the assignee for the bug.= --15196755241.A65Eb7527.5858 Date: Mon, 26 Feb 2018 20:05:24 +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 = Roland Scheidegger changed bug 10525= 6
What Removed Added
Resolution NOTABUG FIXED

Commen= t # 4 on bug 10525= 6 from Roland Scheidegger
(In reply to Logan McNaughton from comment #2)
> Interesting, is this documented somewhere? How d=
o you know what data formats
> the HW supports? Is there any other hardware besides these cards that =
don't
> support it?
>=20
> I'll have the users test using GL_UNSIGNED_SHORT

I'm not sure if AMD (or ATI) had some perf guides published where this was
stated. You can, however, see this from the published register guides -
h=
ttps://developer.amd.com/resources/developer-guides-manuals/
It says VGT_INDEX_16 and VGT_INDEX_32 as valid values for VGT_DMA_INDEX_TYPE
(for evergreen, others should be similar), interestingly however it's alrea=
dy a
2-bit value there.
(Actually the register guides only seem to go up to Sea Islands, so you can=
't
even see that it is supported starting with VI.)
A look at the mesa driver is probably easier though :-). This should affect=
 all
amd/ati hw up to Sea Islands. Of course, if you use old-school non-vbo elem=
ent
data, it's probably no big deal.
At a very quick glance at the driver code, it looks like newer nvidia chips=
 can
handle it (everything from g80). nv30/nv40 cannot, but there it looks like =
nv30
will emulate index buffers anyway, so the only chips which this might make a
difference is nv40 family.
Looks like all intel chips can handle it fine.

That said, even if the slowdown is due to this, I'm not convinced the driver
couldn't do better (though it does not look trivial to do better). But it's=
 one
of the features which noone really expects to get used, therefore it's good
enough as long as it works correctly...

You can't query this afaik and just have to know... Apparently using
GL_UNSIGNED_BYTE indices was simply broken at some point with windows drive=
rs
too - it's possible the blob implements a more sophisticated emulation
strategy: https://commu=
nity.amd.com/thread/159040


You are receiving this mail because:
  • You are the assignee for the bug.
= --15196755241.A65Eb7527.5858-- --===============1436082637== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1436082637==--