i965/nir: double/dvec2 uniforms only need to be padded to a single vec4 slot
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Mon, 6 Jun 2016 13:49:52 +0000 (15:49 +0200)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 3 Jan 2017 10:26:50 +0000 (11:26 +0100)
commit9fa24632f3852eb3c506708912ab4257ea6b8ed1
treeb89e9e44a208867478ffc34669392cf0f6f23897
parentc5ae6e78fc3bed83c6e18be6dbc8eb86a8db0898
i965/nir: double/dvec2 uniforms only need to be padded to a single vec4 slot

max_vector_size is used in the vec4 backend to pad out the uniform
components to match a size that is a multiple of a vec4. Double and dvec2
uniforms only require a single vec4 slot, not two.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_nir_uniforms.cpp