827b0fa1ef
If the shader passed to nir_lower_vars_to_scratch contains some unused derefs to a variable that will be lowered, validation will fail because the variable is not part of the shader after the pass. cc: mesa-stable Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26271>