freedreno: remove always-defined #ifdef
authorEric Engestrom <eric.engestrom@intel.com>
Wed, 7 Nov 2018 17:23:55 +0000 (17:23 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Thu, 3 Jan 2019 18:36:26 +0000 (18:36 +0000)
While at it, let's include xf86atomic.h explicitly, instead of relying
on some other file accidentally including it before including this file.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
freedreno/freedreno_ringbuffer.h

index bc41a31..1a1e842 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef FREEDRENO_RINGBUFFER_H_
 #define FREEDRENO_RINGBUFFER_H_
 
+#include <xf86atomic.h>
 #include <freedreno_drmif.h>
 
 /* the ringbuffer object is not opaque so that OUT_RING() type stuff
@@ -83,9 +84,7 @@ struct fd_ringbuffer {
         * be inlined for performance reasons.
         */
        union {
-#ifdef HAS_ATOMIC_OPS
                atomic_t refcnt;
-#endif
                uint64_t __pad;
        };
 };