nouveau: Fix out-of-bounds access in AlgebraicOpt
authorM Henning <drawoc@darkrefraction.com>
Sun, 20 Mar 2022 04:23:46 +0000 (00:23 -0400)
committerMarge Bot <emma+marge@anholt.net>
Sun, 20 Mar 2022 05:35:06 +0000 (05:35 +0000)
commitc36f3f2db823337955d5a866d66556a69901da0b
tree89d250e227c83379e6b3fea93e86e854a3b50b3b
parentd12e16fc3b5217613aa077f5f3418f16cf5cb824
nouveau: Fix out-of-bounds access in AlgebraicOpt

for cases where we calculate the absolute value of the result
of a unary operation

We can remove this problematic check since it's redundant with
the one several lines down.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15476>
src/gallium/drivers/nouveau/codegen/nv50_ir_peephole.cpp