mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
vc4: Fix running process_mux_deps on irrelevant type of instructions
Only ALU and ALU Small Imm instructions have input mux. Signed-off-by: Qiu Wenbo <qiuwenbo@kylinos.com.cn> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20581>
This commit is contained in:
parent
7489c29abe
commit
ee32f3873c
1 changed files with 9 additions and 7 deletions
|
|
@ -344,13 +344,15 @@ calculate_deps(struct schedule_state *state, struct schedule_node *n)
|
|||
process_raddr_deps(state, n, raddr_b, false);
|
||||
}
|
||||
|
||||
if (add_op != QPU_A_NOP) {
|
||||
process_mux_deps(state, n, add_a);
|
||||
process_mux_deps(state, n, add_b);
|
||||
}
|
||||
if (mul_op != QPU_M_NOP) {
|
||||
process_mux_deps(state, n, mul_a);
|
||||
process_mux_deps(state, n, mul_b);
|
||||
if (sig != QPU_SIG_LOAD_IMM && sig != QPU_SIG_BRANCH) {
|
||||
if (add_op != QPU_A_NOP) {
|
||||
process_mux_deps(state, n, add_a);
|
||||
process_mux_deps(state, n, add_b);
|
||||
}
|
||||
if (mul_op != QPU_M_NOP) {
|
||||
process_mux_deps(state, n, mul_a);
|
||||
process_mux_deps(state, n, mul_b);
|
||||
}
|
||||
}
|
||||
|
||||
process_waddr_deps(state, n, waddr_add, true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue