nir/remove_dead_variables: account for tex access via sampler_index
Some fixed function shaders contain samplers that are only accessed via the sampler_index from the start. Since these are actually used they should also not be removed from the variables list.
v2: - don't track sampler use for non-uniforms (Jesse Natalie) - don't check used samplers twice