etnaviv: drm: Use mesa's atomic definitions
[mesa.git] / src / etnaviv / drm / etnaviv_bo_cache.c
index 6da847c724ce3ffed2b6b1935e0da6841ec3bc27..fa0d2a28451e7a1e48ff8f4b6f02664fd8b98725 100644 (file)
@@ -169,7 +169,7 @@ struct etna_bo *etna_bo_cache_alloc(struct etna_bo_cache *cache, uint32_t *size,
                *size = bucket->size;
                bo = find_in_bucket(bucket, flags);
                if (bo) {
                *size = bucket->size;
                bo = find_in_bucket(bucket, flags);
                if (bo) {
-                       atomic_set(&bo->refcnt, 1);
+                       p_atomic_set(&bo->refcnt, 1);
                        etna_device_ref(bo->dev);
                        return bo;
                }
                        etna_device_ref(bo->dev);
                        return bo;
                }