nir: only uniforms with dynamically_uniform offset are dynamically_uniform
authorJose Maria Casanova Crespo <jmcasanova@igalia.com>
Wed, 17 Jun 2020 00:30:23 +0000 (02:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 23 Jun 2020 13:04:04 +0000 (13:04 +0000)
commitba15bb383f0756703e05bf202edc4771a1c54560
treef7ae50dc147264f2515167c3435b3e7689b1505a
parent2a61a8d95a8baebfbec53de8f6f2f70b09801486
nir: only uniforms with dynamically_uniform offset are dynamically_uniform

Previously all nir_intrinsic_load_uniform that were used as sources were
considered to be dynamically_uniform but when offsets of load_uniform
are indirect it can not be determined.

This fixes artefacts in Google Maps 3D view in V3D.

Fixes: 886d46b08971 ("nir: Add a function to determine if a source is dynamically uniform")
Reviewed-by: Neil Roberts <nroberts@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5587>
src/compiler/nir/nir.c