intel/fs: Assert when brw_fs_nir sees a nir_deref_instr
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 1 May 2019 23:31:14 +0000 (16:31 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 3 May 2019 06:25:30 +0000 (23:25 -0700)
commitaa675cef5e589bb1f4dacb94e22d8195f1d7e5ac
treed82f1ed6164d3bdaac0a67f293d9eb8404c8351d
parenta77512635e22b1e31a90dc5ce9d50d5cdf33e7b9
intel/fs: Assert when brw_fs_nir sees a nir_deref_instr

Since 09f1de97a76 "anv,i965: Lower away image derefs in the driver"
the backend compiler is not expected to handle any derefs, so let's
assert on it.

This helps identifying problems when a deref is not lowered and
"leaks" into the backend compiler.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_nir.cpp