panfrost: Fix OOB array access compiler warning.
authorEric Anholt <eric@anholt.net>
Tue, 25 Aug 2020 17:20:44 +0000 (10:20 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 28 Aug 2020 22:45:08 +0000 (22:45 +0000)
commitecab580d48f150d798ee82ff943ba3c30b9d8a65
treef96212d89ac4bc6eb897771576d3f8fb3b34cfad
parentccb5e0b02b258e728cd4afb64ba7a75cefad2f09
panfrost: Fix OOB array access compiler warning.

-1 is used to select "choose the dest type", but we were dereffing src[-1]
anyway and the compiler is not a fan.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6462>
src/panfrost/bifrost/bir.c