[Mesa-dev] [PATCH 00/13] Fix gl_VertexID on i965

Kenneth Graunke kenneth at whitecape.org
Sun Aug 3 23:07:33 PDT 2014


On Sunday, June 22, 2014 03:59:01 AM Marek Olšák wrote:
> That's right. A uniform won't work with ARB_draw_indirect unless you
> lower it to direct draws, which would be very bad if it was applied to
> all drivers.
> 
> Radeonsi indeed supports BaseVertex and BaseInstance as system values
> in the vertex shader. Well, vertex fetching has to be done in the
> vertex shader on that hardware, so the system values are kinda
> required there.
> 
> Marek

FWIW, I've thrown together some patches for i965 which make gl_BaseVertex available as a system value, which I think is the right thing to do.  I've tested the indirect draw case, and it seems to work fine.

basevertex-v5 of my tree.  It needs cleaning up and testing, but the hard part is in place.  It mostly reuses Ian's existing GLSL IR lowering pass, too.

--Ken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140803/a0c3dc9c/attachment.sig>


More information about the mesa-dev mailing list