Skip to content

nir/remove_unused_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 variables list.

v2: don't track sampler use for non-uniforms (Jesse Natalie) v2: don't check used samplers twice

Signed-off-by: Gert Wollny gert.wollny@collabora.com

Merge request reports