OSDN Git Service

nir: Create sampler variables in prog_to_nir.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 24 Aug 2018 23:40:19 +0000 (16:40 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2018 06:35:47 +0000 (23:35 -0700)
commit1c0f92d8a8c480a5803c3ce45b2a6d46bfcd280f
tree6d5eb8ffc14287fa5583490fc898bfa161663444
parented169c9ad2121429aaf0cb99cdf9e298b284a753
nir: Create sampler variables in prog_to_nir.

This is needed for nir_gather_info to actually count the textures,
since it operates solely on variables.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/program/prog_to_nir.c