i965/fs: do not depend on std140 alignment rules for UBO loads
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 19 May 2016 10:50:01 +0000 (12:50 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Mon, 23 May 2016 06:56:57 +0000 (08:56 +0200)
commitb46867cd378e5fb135fd060d50c8028d3dac622a
tree3ae8eb57917b0af172f02699c7e450a3febbb346
parent38b719d6244e831effe93a5d10e932aad2100984
i965/fs: do not depend on std140 alignment rules for UBO loads

The previous implementation relied on the std140 alignment rules to
avoid handling misalignment in the case where we are loading more than
2 double components from a vector, which requires to emit a second load
message.

This alternative implementation deals with misalignment and is more
flexible going forward.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp