mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 09:20:09 +01:00
freedreno: remove always-defined #ifdef
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>
This commit is contained in:
parent
597725e951
commit
b541d21a0a
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue