brw: remove rematerialization assert

The default case should lead us to the next rematerialization block so
this is useless.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29663>
This commit is contained in:
Lionel Landwerlin 2024-06-17 15:25:59 +03:00 committed by Marge Bot
parent d42bc0d3fc
commit 11a634151b

View file

@ -4599,11 +4599,6 @@ try_rebuild_resource(nir_to_brw_state &ntb, const brw::fs_builder &bld, nir_def
nir_instr_as_load_const(def->parent_instr);
return brw_imm_ud(load_const->value[0].i32);
} else {
assert(def->parent_instr->type == nir_instr_type_intrinsic &&
(nir_instr_as_intrinsic(def->parent_instr)->intrinsic ==
nir_intrinsic_load_uniform ||
nir_instr_as_intrinsic(def->parent_instr)->intrinsic ==
nir_intrinsic_load_reloc_const_intel));
nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(def->parent_instr);
switch (intrin->intrinsic) {
case nir_intrinsic_load_uniform: {