nir/loop_analyze: skip if basis/limit/comparison is vector
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 13 Oct 2023 18:56:24 +0000 (19:56 +0100)
committerEric Engestrom <eric@engestrom.ch>
Fri, 8 Dec 2023 11:12:56 +0000 (11:12 +0000)
commitf63ea1a1303dcd25adb115eb695c6198e4606e19
tree0101507928f53c17dfb3199736dbfe9d9604ebf3
parent85a215801cf8dc87587614fed7c49a846a923071
nir/loop_analyze: skip if basis/limit/comparison is vector

Replacement in try_eval_const_alu() doesn't work because the replacements
are always scalar. The callers also always give a scalar dest.

This is encountered when compiling a Redout shader under ASan.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
Fixes: bc170e895f38 ("nir/loop_analyze: Use try_eval_const_alu and induction variable basis info")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26225>
(cherry picked from commit 796058841378c4d5e04ff8b5cbe5adef5aae326a)
.pick_status.json
src/compiler/nir/nir_loop_analyze.c