broadcom/compiler: don't schedule rf0 writes right after ldvary
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 22 Oct 2021 11:39:48 +0000 (13:39 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:42 +0000 (22:37 +0000)
commit28631a5550ac2b42fe205fe85ae215ef040f8633
treedc1040ed276c1ccc34a34b4980652c97e829565f
parent42b70f624b2a4ec9b17a745235a3ef601dd3816f
broadcom/compiler: don't schedule rf0 writes right after ldvary

ldvary writes rf0 implicitly on the next cycle so they would clash.
This case is not handled correctly by our normal dependency tracking,
which doesn't know anything about delayed writes from instructions
and thinks the rf0 write happens on the same cycle ldvary is emitted.

Fixes (v71):
dEQP-VK.glsl.conversions.matrix_to_matrix.mat2x3_to_mat4x2_fragment

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