X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fetnaviv%2Fdrm%2Fetnaviv_priv.h;h=d13cfe73686aa31d6b23d18f229f2159e8c8f5db;hp=aabace03f2b51bbbee9e5cb0fcccb1d4747207ca;hb=2ebd444c100318f27776c4214c6c16555a3262e5;hpb=6ab83b84749d91a886653ab6bcb51ad2d5040c07;ds=sidebyside diff --git a/src/etnaviv/drm/etnaviv_priv.h b/src/etnaviv/drm/etnaviv_priv.h index aabace03f2b..d13cfe73686 100644 --- a/src/etnaviv/drm/etnaviv_priv.h +++ b/src/etnaviv/drm/etnaviv_priv.h @@ -40,6 +40,9 @@ #include +#include "util/list.h" +#include "util/u_atomic.h" + #include "etnaviv_drmif.h" #include "etnaviv_drm.h" @@ -56,7 +59,7 @@ struct etna_bo_cache { struct etna_device { int fd; - atomic_t refcnt; + int refcnt; /* tables to keep track of bo's, to avoid "evil-twin" etna_bo objects: * @@ -92,7 +95,7 @@ struct etna_bo { uint32_t flags; uint32_t name; /* flink global handle (DRI2 name) */ uint64_t offset; /* offset to mmap() */ - atomic_t refcnt; + int refcnt; /* in the common case, a bo won't be referenced by more than a single * command stream. So to avoid looping over all the bo's in the