nir: assert that nir_lower_tex runs after lowering derefs
authorRob Clark <robdclark@chromium.org>
Mon, 13 Jan 2020 19:34:53 +0000 (11:34 -0800)
committerDaniel Stone <daniel@fooishbar.org>
Mon, 13 Jan 2020 23:19:49 +0000 (23:19 +0000)
commit4cda61f11e922fb5914ae73d22cc0c495abf0377
tree7df01cb057499de011d15734c0c4d2205cfd0666
parentd72f17875334bd9c720ab21fd187328bca00e7dd
nir: assert that nir_lower_tex runs after lowering derefs

It isn't going to do the right thing, because texture_index/
sampler_index defaults to zero.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3368>
src/compiler/nir/nir_lower_tex.c