nir: Create sampler2D variables in nir_lower_{bitmap,drawpixels}.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 24 Aug 2018 08:34:30 +0000 (01:34 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 15 Oct 2018 06:35:35 +0000 (23:35 -0700)
commited169c9ad2121429aaf0cb99cdf9e298b284a753
tree3ac67b5d832d6be131a9928e585e4665adaa2b09
parentb7397b09d5474e783b3d0e404cdee82b9dc31345
nir: Create sampler2D variables in nir_lower_{bitmap,drawpixels}.

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

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/compiler/nir/nir_lower_bitmap.c
src/compiler/nir/nir_lower_drawpixels.c