broadcom/compiler: disallow tsy barrier in thrsw delay slots
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 21 Oct 2021 10:06:16 +0000 (12:06 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Thu, 21 Oct 2021 10:40:00 +0000 (12:40 +0200)
commit75bd37dc6a33c3b00c7349dcd0295415a9c46d59
tree7da7be56ec4d516607c08f80647f5ac1776b0fcc
parent9202e8cbafc70d989e4db45a895c36801c30e217
broadcom/compiler: disallow tsy barrier in thrsw delay slots

A TSY barrier becomes effective at the point of the next thread switch,
so if we have one coming after a previous thread switch we need to
be careful not to emit it in its delay slots, or we would be effectively
moving the barrier earlier than intended.

Fixes simulator assert crash in:
dEQP-VK.graphicsfuzz.two-for-loops-with-barrier-function

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