summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2020-01-13 17:35:35 -0800
committerKenneth Graunke <[email protected]>2020-01-13 17:37:40 -0800
commit50c47ba49edc525bb8bca7a95cf75d7275a21a76 (patch)
treee40fb445ec1f234801db99c93de4f37d6c0f47f0
parent09b37ba65f5870112a4f60f75d7e74594bdbee01 (diff)
Revert "nir: assert that nir_lower_tex runs after lowering derefs"
This reverts commit 4cda61f11e922fb5914ae73d22cc0c495abf0377 for now, as it appears to break i965 CI (32,000+ failures). Rob and I suspect we need to do the equivalent of 1c6a2efa06e9bb5914f4557118930fc61065a467 on i965 - we are doing nir_lower_tex and brw_nir_lower_resources in the wrong order and that's likely triggering this condition. Once we fix that, we should put this patch back.
-rw-r--r--src/compiler/nir/nir_lower_tex.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/compiler/nir/nir_lower_tex.c b/src/compiler/nir/nir_lower_tex.c
index 191076f8c27..6c8c6aa1164 100644
--- a/src/compiler/nir/nir_lower_tex.c
+++ b/src/compiler/nir/nir_lower_tex.c
@@ -934,12 +934,6 @@ nir_lower_tex_block(nir_block *block, nir_builder *b,
nir_tex_instr *tex = nir_instr_as_tex(instr);
bool lower_txp = !!(options->lower_txp & (1 << tex->sampler_dim));
- /* we aren't really going to do the right thing if we haven't
- * lowered tex/samp derefs yet:
- */
- assume(nir_tex_instr_src_index(tex, nir_tex_src_texture_deref) < 0);
- assume(nir_tex_instr_src_index(tex, nir_tex_src_sampler_deref) < 0);
-
/* mask of src coords to saturate (clamp): */
unsigned sat_mask = 0;