Skip to content

virgl: Only PIPE_BUFFER with VIRGL_BIND_CUSTOM flag is considered busy during creation

Feng Jiang requested to merge flynnjiang/mesa:fix-attach-v4 into main

When the virglrenderer performs the attach action for the PIPE_BUFFER with the VIRGL_BIND_CUSTOM flag, it will synchronize the data from res->ptr to res->iov, at this time we need to treat it as busy, otherwise it will cause some race conditions.

This optimizes commit: fe9333f7 ("virgl: Set res->maybe_busy to true when creating resources")

Signed-off-by: Feng Jiang jiangfeng@kylinos.cn

Edited by Feng Jiang

Merge request reports