nir: add nir_tex_instr_need_sampler helper
authorAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 22 Apr 2020 21:32:47 +0000 (23:32 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Wed, 22 Apr 2020 21:43:18 +0000 (23:43 +0200)
commit9fd180394bddbb2abd7edb39852b1419249be450
tree2e2dbeea3b0072072c3bb50e9d605f584db596e5
parent41bfd0812b4aef70a6acd6c4d389c722f45e29c5
nir: add nir_tex_instr_need_sampler helper

That is basically nir_tex_instr sampler_index documentation comment
expressed as a helper.

Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4677>
src/compiler/nir/nir.h