r600/sfn: Use load_ubo_vec4 lowering pass
authorGert Wollny <gert.wollny@collabora.com>
Sun, 6 Sep 2020 21:40:24 +0000 (23:40 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 17 Sep 2020 10:11:11 +0000 (10:11 +0000)
commit18e97817148eb376274a8749c03b45c2f817c139
tree26d11c30bd6642d0c562e3ada3605b9564d0c18d
parent98eb00face93b9af5aac19008ecff5a2bf376745
r600/sfn: Use load_ubo_vec4 lowering pass

This replaces the lowering pass to align UBO loads at 16 byte
boundaries.

v2: use nir functions to query constants in ubo_vec4 (Eric)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6743>
src/gallium/drivers/r600/sfn/sfn_nir.cpp
src/gallium/drivers/r600/sfn/sfn_shader_base.cpp
src/gallium/drivers/r600/sfn/sfn_shader_base.h