diff options
author | Juan A. Suarez Romero <[email protected]> | 2016-05-20 16:35:52 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2016-05-24 10:06:29 +0200 |
commit | e79aa19d88b4d6dbd26c23287292e6bf9f41ce33 (patch) | |
tree | c78d45530c059c55cd9e7cd259965aaeb76ef599 /docs | |
parent | ccd58015a2a9b067a6ece7a83bf5aa42dbb9acba (diff) |
i965: fix double-precision vertex inputs measurement
For double-precision vertex inputs we need to measure them in dvec4
terms, and for single-precision vertex inputs we need to measure them in
vec4 terms.
For the later case, we use type_size_vec4() function. For the former
case, we had a wrong implementation based on type_size_vec4().
This commit introduces a proper type_size_dvec4() function, that we use
to measure vertex inputs.
Measuring double-precision vertex inputs as dvec4 is required because
ARB_vertex_attrib_64bit states that these uses the same number of
locations than the single-precision version. That is, two consecutives
dvec4 would be located in location "x" and location "x+1", not "x+2".
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions