Skip to content

virgl: use atomic operations when increase sub_ctx_id

hexin.op requested to merge (removed):hx_dev into master

Use atomic operations to avoid competition. In addition, since sub_ctx_id 0 has been used by default, sub_ctx_id should start from 1.

Signed-off-by: Xin He hexin.op@bytedance.com Reviewed-by: Gert Wollny gert.wollny@collabora.com

Edited by hexin.op

Merge request reports

Loading