diff options
author | Kenneth Graunke <[email protected]> | 2015-09-02 10:42:57 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2015-09-02 23:28:20 -0700 |
commit | c3294ca5a13cf3f0eb3d9907a46ff8ce4bc2963b (patch) | |
tree | 8d02ae71f743575b61a41b0d36b6b371be900d4f /src/glsl/.gitignore | |
parent | 6e3730452152ca74ad3b51bf1dd4b69b20dbc019 (diff) |
glsl: Handle attribute aliasing in attribute storage limit check.
In various versions of OpenGL and GLSL, it's possible to declare
multiple VS input variables with aliasing attribute locations.
So, when computing the storage requirements for vertex attributes,
we can't simply add up the sizes. Instead, we need to look at the
enabled slots.
This patch begins tracking which attributes are double types that
are larger than 128-bits (i.e. take up two vec4 slots). We then
count normal attributes once, and count the double-size attributes
a second time.
Fixes deQP functional.attribute_location.bind_aliasing.max_cond_* tests
on i965, which regressed with commit ad208d975a6d3aebe14f7c2c16039ee20.
No Piglit changes on llvmpipe (which actually supports dvecs).
Cc: "10.6 11.0" <[email protected]>
Tested-by: Mark Janes <[email protected]>
Reviewed-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/.gitignore')
0 files changed, 0 insertions, 0 deletions