diff options
author | Eric Anholt <[email protected]> | 2011-11-08 18:50:09 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-11 08:27:59 -0800 |
commit | 1c65abb211e6a3df8c46180ae3242486ee97dc8d (patch) | |
tree | 89e4d0955f49f0cd841c9d0f7efd933f6d7fdd4a /src/glsl/glcpp | |
parent | 9472f6677672ac89d6addba025b33287670da9e9 (diff) |
i965: Add support for gl_VertexID and gl_InstanceID.
The compiler setup for these VF-uploaded attributes looks a little
cheesy with mixing system values and real VBO-sourced attributes. It
would be nice if we could just compute the ATTR[] map to GRF index up
front and use it at visit time instead of using ir->location in the
ATTR file. However, we don't know the reg_offset at
visit(ir_variable *) time, so we can't do the mapping that early.
Fixes piglit vertexid test.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/glcpp')
0 files changed, 0 insertions, 0 deletions