diff --git a/src/gallium/drivers/llvmpipe/lp_fence.c b/src/gallium/drivers/llvmpipe/lp_fence.c index 00cd79d6ba6..7fb24d39046 100644 --- a/src/gallium/drivers/llvmpipe/lp_fence.c +++ b/src/gallium/drivers/llvmpipe/lp_fence.c @@ -44,7 +44,7 @@ struct lp_fence * lp_fence_create(unsigned rank) { - static int fence_id; + static _Atomic int fence_id; struct lp_fence *fence = CALLOC_STRUCT(lp_fence); if (!fence)