45f9208cca
When a command buffer ends with pending barriers we were emitting a serialized noop job, but this only works to ensure serialization of follow-up CL jobs, it won't do what we want if the barrier was intended for compute or TFU transfers for example. Fix this by merging the barrier state into follow-up jobs in the same queue submission. Reviewed-by: Juan A. Suarez <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33507>