panfrost: Route gl_VertexID through cmdstream
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 19 Dec 2019 19:00:24 +0000 (14:00 -0500)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 25 Dec 2019 03:55:04 +0000 (22:55 -0500)
commitbe691ca22dec2116b24f44324453fbee8abec71d
treef60fed13e422340b39d5f3ae48d1197783acc51c
parent8781378224d5072e328c39c5b16acb7549654be7
panfrost: Route gl_VertexID through cmdstream

It shows up as a special (magic?) attribute. We could try to be clever
and only include the extra record if gl_VertexID is actually read, but
honestly that's just extra complexity for no good reason. Might as well
just always include it; this won't be a real bottleneck, I don't think.

Fixes dEQP-GLES3.functional.shaders.builtin_variable.vertex_id.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_attributes.c
src/gallium/drivers/panfrost/pan_context.c
src/panfrost/encoder/pan_attributes.c
src/panfrost/encoder/pan_encoder.h