nir: make nir_get_texture_size/lod available outside nir_lower_tex
authorGert Wollny <gert.wollny@collabora.com>
Sun, 22 Dec 2019 16:35:56 +0000 (17:35 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Sat, 4 Jan 2020 16:22:40 +0000 (16:22 +0000)
commit6c9495b3924a890bb118eec5519157c082dab3da
treeb4257cf271258fb57cee414dbb2be1291f5d4bc4
parentf69bf7fe8c98c9a4aa4a447443597ae038f6bf0b
nir: make nir_get_texture_size/lod available outside nir_lower_tex

This functions can be useful in other places.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3286>
src/compiler/nir/nir_builtin_builder.c
src/compiler/nir/nir_builtin_builder.h
src/compiler/nir/nir_lower_tex.c