Skip to content

nir/remove_dead_variables: account for tex access via sampler_index

Gert Wollny requested to merge gerddie/mesa:nir-keep-indexed-samplers into master

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

Merge request reports