diff options
author | Paul Berry <[email protected]> | 2011-10-31 17:31:16 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-11-02 09:29:35 -0700 |
commit | 29e2bc8b13be0f7ec48f8514e47322353e041365 (patch) | |
tree | f516a20508b0866b23b28163f3419c5f2492dd8e /src/gallium/auxiliary/util/u_math.h | |
parent | 8f84c237b360be69f9b6ac51465c729b3ada196a (diff) |
i965: Add support for integral vertex attributes.
When a vertex shader input attribute is declared with an integral type
(e.g. ivec4), we need to ensure that the generated vertex shader code
addresses the vertex attribute register using the proper register
type. (Previously, we assumed all vertex shader input attributes were
floating-point).
In addition, when uploading vertex data that was specified with
VertexAttribIPointer, we need to instruct the vertex fetch unit to
convert the data to signed or unsigned int, rather than float. And
when filling in the implied w=1 on a vector with less than 4
components, we need to fill it in with the integer representation of 1
rather than the floating-point representation of 1.
Fixes piglit tests vs-attrib-{ivec4,uvec4}-precision.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_math.h')
0 files changed, 0 insertions, 0 deletions