nir/lower_tex: Actually report when projector lowering happened
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 17 Jun 2019 09:23:33 +0000 (11:23 +0200)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 18 Jun 2019 13:36:07 +0000 (06:36 -0700)
commit352b1d9c311b1468857cce30191994586520ef46
treea1e962c357b8a87e75db6eabcdd22becd8b41ceb
parent6f60fec48fe70c7e8cfe5f8c9752c057794e8a34
nir/lower_tex: Actually report when projector lowering happened

The code considers that projector lowering was done even if it's not
really the case. Change the project_src() prototype to return a bool
encoding whether projector lowering happened or not and update the
progress var accordingly in nir_lower_tex_block().

---
Changes in v2:
* Add Jason R-b
* Drop the part suggesting that nir_lower_rect() could be called in
  a do-while(progress) loop.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/compiler/nir/nir_lower_tex.c