nir/lower_amul: Add a variable mode check
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 20 Jul 2020 22:31:04 +0000 (17:31 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 17:38:58 +0000 (17:38 +0000)
commitd5d15c301e11d623f81a2d9181dadedb03e07c1f
treec8289f7e68a49c216cd9cff75b05bb1adddffb7a
parent3be0be7d545334107977e850ce9ab51b0110a222
nir/lower_amul: Add a variable mode check

This loop should only apply to UBOs and SSBOs because max_slot is never
used for normal uniforms.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
src/compiler/nir/nir_lower_amul.c