From: bugzilla-daemon@freedesktop.org Subject: [Bug 105256] Slow performance using glDrawElementsBaseVertex Date: Mon, 26 Feb 2018 18:47:24 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0166562085==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 09F446E507 for ; Mon, 26 Feb 2018 18:47: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 --===============0166562085== Content-Type: multipart/alternative; boundary="15196708430.DfF6.13108" Content-Transfer-Encoding: 7bit --15196708430.DfF6.13108 Date: Mon, 26 Feb 2018 18:47:23 +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 --- Comment #1 from Roland Scheidegger --- At a quick glance, I'd suspect the problem isn't really drawElementsBaseVer= tex per se, but the use of GL_UNSIGNED_BYTE indices as the code seemed to do. The hw doesn't support ubyte indices, and this has to be emulated by conver= ting the elements to ushort (and if you don't start from zero, IIRC this can get huge buffers allocated especially if start is negative, but I don't remember the details). I don't know if the driver could do better, but in general you're advised to not use ubyte indices (this is a gl only feature, d3d doesn't support it, so it's unsurprising some hw doesn't support it natively). (Note that even early GCN does not support ubyte indices, they are only supported starting with Vulcanic Islands.) --=20 You are receiving this mail because: You are the assignee for the bug.= --15196708430.DfF6.13108 Date: Mon, 26 Feb 2018 18:47:23 +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 # 1 on bug 10525= 6 from Roland Scheidegger
At a quick glance, I'd suspect the problem isn't really drawEl=
ementsBaseVertex
per se, but the use of GL_UNSIGNED_BYTE indices as the code seemed to do.
The hw doesn't support ubyte indices, and this has to be emulated by conver=
ting
the elements to ushort (and if you don't start from zero, IIRC this can get
huge buffers allocated especially if start is negative, but I don't remember
the details).
I don't know if the driver could do better, but in general you're advised to
not use ubyte indices (this is a gl only feature, d3d doesn't support it, so
it's unsurprising some hw doesn't support it natively).
(Note that even early GCN does not support ubyte indices, they are only
supported starting with Vulcanic Islands.)


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