broadcom/compiler: fix v3d_qpu_uses_sfu
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 24 Apr 2023 06:48:39 +0000 (08:48 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 24 Apr 2023 09:34:20 +0000 (09:34 +0000)
commit4a3be610d5e5deb47aff1a9fc8bbab85cff9e502
tree2d25231806f630fbfa49936b5c6f3fa0ec0b9986
parentee4e7b9d4dcec46ddff0471b34dd654e82f288f0
broadcom/compiler: fix v3d_qpu_uses_sfu

We should check that the alu op is valid before testing the
write address.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22593>
src/broadcom/qpu/qpu_instr.c