[Bug 105256] Slow performance using glDrawElementsBaseVertex

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 26 18:47:24 UTC 2018


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

--- Comment #1 from Roland Scheidegger <sroland at vmware.com> ---
At a quick glance, I'd suspect the problem isn't really drawElementsBaseVertex
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 converting
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180226/55ec68b0/attachment.html>


More information about the dri-devel mailing list