broadcom/compiler: fix incorrect ALU checks
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 25 Apr 2023 07:04:25 +0000 (09:04 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 25 Apr 2023 09:15:26 +0000 (11:15 +0200)
commit148473eae4cd202c83fc49f462f08bff14506bc8
tree565d540ab86e59a8af2c87994eb7f5ae93ac5311
parent65b40d0b7e9edd85aefd3ae17c73ac7f84d0330f
broadcom/compiler: fix incorrect ALU checks

We had a bunch of cases where we would check ALU parameters without
first checking if the ALU op was valid.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22675>
src/broadcom/compiler/qpu_schedule.c
src/broadcom/qpu/qpu_instr.c