nir/lower_tex: generalize get_texture_size()
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 30 Nov 2016 11:42:54 +0000 (12:42 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 13 Dec 2016 09:31:38 +0000 (10:31 +0100)
commitbac303c286de2a07912333a775bf4af18cd04e7a
tree2ad36890dff16e864d85652f30ddd8fb655ab19c
parentfd249c803e3ae2acb83f5e3b7152728e73228b7b
nir/lower_tex: generalize get_texture_size()

This was written specifically for RECT samplers. Make it more generic so
we can call this from the gradient lowerings too.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_tex.c