On Friday, May 20, 2016 5:05:03 PM PDT Juan A. Suarez Romero wrote: > 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". > --- > src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- > src/mesa/drivers/dri/i965/brw_shader.h | 1 + > src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 66 > ++++++++++++++++++++------ > 3 files changed, 53 insertions(+), 16 deletions(-)
Reviewed-by: Kenneth Graunke <[email protected]>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
