nir/lower_tex: support for lowering RECT textures
authorRob Clark <robclark@freedesktop.org>
Wed, 16 Sep 2015 20:49:14 +0000 (16:49 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 19 Sep 2015 01:07:49 +0000 (21:07 -0400)
commit1ce8060c25c7f2c7a54159fab6a6974c0ba182a8
treeb820d528e0e01a7684a2c104a4d338074b980362
parentfaf5f174ddbc7680f6947ceababb94fdb552bcdb
nir/lower_tex: support for lowering RECT textures

v2: comments/suggestions from Ilia and Eric, split out get_texture_size()
helper so we can use it in the next commit for clamping RECT textures.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_tex.c