aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-05-01 16:31:14 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-05-02 23:25:30 -0700
commitaa675cef5e589bb1f4dacb94e22d8195f1d7e5ac (patch)
treed82f1ed6164d3bdaac0a67f293d9eb8404c8351d /src/intel/compiler
parenta77512635e22b1e31a90dc5ce9d50d5cdf33e7b9 (diff)
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 <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_fs_nir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs_nir.cpp b/src/intel/compiler/brw_fs_nir.cpp
index 526cc13c71a..cdd3f7bccaa 100644
--- a/src/intel/compiler/brw_fs_nir.cpp
+++ b/src/intel/compiler/brw_fs_nir.cpp
@@ -454,7 +454,7 @@ fs_visitor::nir_emit_instr(nir_instr *instr)
break;
case nir_instr_type_deref:
- /* Derefs can exist for images but they do nothing */
+ unreachable("All derefs should've been lowered");
break;
case nir_instr_type_intrinsic: