intel/fs: don't try to rebuild sequences of non ssa values

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 04777171e0 ("intel/fs: try to rematerialize surface computation code")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9378
Reviewed-by: Illia Polishchuk <illia.a.polishchuk@globallogic.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24228>
This commit is contained in:
Lionel Landwerlin
2023-07-19 09:22:59 +03:00
committed by Marge Bot
parent 2f3230a736
commit 8cbf730145

View File

@@ -4059,7 +4059,9 @@ fs_visitor::try_rebuild_resource(const brw::fs_builder &bld, nir_ssa_def *resour
if (nir_op_infos[alu->op].num_inputs != 2)
break;
if (alu->src[0].negate ||
if (!alu->src[0].src.is_ssa ||
!alu->src[1].src.is_ssa ||
alu->src[0].negate ||
alu->src[0].abs ||
alu->src[0].swizzle[0] != 0 ||
alu->src[1].negate ||