lima/gpir: fix float uniform alignment issue
authorVasily Khoruzhick <anarsoul@gmail.com>
Wed, 1 May 2019 02:53:01 +0000 (19:53 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Mon, 6 May 2019 21:08:09 +0000 (14:08 -0700)
commitd085920b6479e2b3aae94450e2bc105307d2cfdc
treef1dd9f17db03e97059083ccbbcee4a5b7eba3c17
parentd84b85bc28d50182f77f2e42e3c14ccedd70715f
lima/gpir: fix float uniform alignment issue

If PIPE_CAP_PACKED_UNIFORMS is not set uniforms are vec4 aligned,
so lima_nir_lower_uniform_to_scalar should use first channel of vec4
for float uniforms.

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/lima_nir_lower_uniform_to_scalar.c