zink: use nir_lower_uniforms_to_ubo
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 24 Apr 2020 15:13:45 +0000 (17:13 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 May 2020 09:17:52 +0000 (09:17 +0000)
commit7983d97174de10670fce5a422ce6c1cb5e783b88
treefc6b820adfab7e051421ceb8caff4748f14e8a26
parent4777ee1a62f0620efa2a105215eb589fc44dfa0f
zink: use nir_lower_uniforms_to_ubo

Instead of open-coding uniform -> UBO lowering, let's instead use the
one that already exists. This should make things a bit simpler going
forward.

Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4734>
src/gallium/drivers/zink/zink_compiler.c