diff options
author | Paul Berry <[email protected]> | 2012-12-18 16:37:52 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-01-08 09:18:14 -0800 |
commit | c35abcd1b0d0e0059c60781bd21558872020553d (patch) | |
tree | 6d6b0dde5c04f96ee075a75e4a7819dbdf0580f6 /src/mesa/state_tracker | |
parent | 18720555dd2da779ad6907e8f6aa083e7b4d1841 (diff) |
glsl: Pack flat "varyings" of mixed types together.
This patch enhances the varying packing code so that flat varyings of
uint, int, and float types can be packed together.
We accomplish this in lower_packed_varyings.cpp by making the type of
all flat varyings ivec4, and then using information-preserving type
conversions (e.g. ir_unop_bitcast_f2i) to convert all other types to
ints.
The varying_matches::compute_packing_class() function is updated to
reflect the fact that varying packing no longer needs to segregate
varyings of different base types.
Fixes piglit test varying-packing-mixed-types.
Reviewed-by: Kenneth Graunke <[email protected]>
v2: Split lower_packed_varyings_visitor::bitwise_assign into
pack/unpack variants.
Diffstat (limited to 'src/mesa/state_tracker')
0 files changed, 0 insertions, 0 deletions