diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2020-06-28 18:18:19 +0200 |
---|---|---|
committer | Gert Wollny <gw.fossdev@gmail.com> | 2020-08-03 06:43:34 +0200 |
commit | 63bff6a9f89d6b8fa3a57253edb2611dd4e226bc (patch) | |
tree | 9cde48e42f8077e053ef054b0758c1fe571c122a /src/mesa | |
parent | b54afde3ad631b33b42812c9ebf2225d9c53e38e (diff) |
gallivm/nir: Lower uniforms to UBOs in llvm draw if the driver didn't request this already
When the llvm draw engine is used for draw shaders in st_program the driver
may not enable the cap PIPE_CAP_PACKED_UNIFORMS, so uniforms are not
be lowered to UBOs. However, llvm doesn't support nir_load_uniform, so lower
the uniforms to UBO now. The multiplier is set to 16 to be the same like in
the TGSI code path.
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/5681>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions