Skip to content
Snippets Groups Projects
Commit b9b27e09 authored by Guillaume Tucker's avatar Guillaume Tucker Committed by Simon Ser
Browse files

i915/gem_create: use atomic_* instead of __sync_*


This fixes builds on some architectures, in particular MIPS which
doesn't have __sync_add_and_fetch_8 and __sync_val_compare_and_swap_8
for 64-bit variable handling.

* replace calls to the older __sync_* functions with the new atomic_*
  standard ones
* use the _Atomic type modifier as required with stdatomic.h functions
* add dependency for gem_create on libatomic

Signed-off-by: default avatarGuillaume Tucker <guillaume.tucker@collabora.com>
Reviewed-by: default avatarSimon Ser <simon.ser@intel.com>
parent 6cced294
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment