i965/vec4: Support full std140 layout for push constants
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Apr 2016 22:55:35 +0000 (15:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 15 Apr 2016 21:04:38 +0000 (14:04 -0700)
commit0166ad6ced542cacfbbbe45e9d4b7f14af5040de
tree61f4b7a76faf76cb9e7ac8f95bd081a04a6b7454
parenta112391d52a458c588b8770cbf1ca9fce8863b79
i965/vec4: Support full std140 layout for push constants

Up until now, we have been able to assume that all push constants are
vec4-aligned because this is what the GL driver gives us.  In Vulkan, we
need to be able to support full std140 because we get the layout from the
client.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp