On 04.10.2016 17:50, Jan Vesely wrote:
On Tue, 2016-10-04 at 16:14 +0200, Nicolai Hähnle wrote:
From: Nicolai Hähnle <[email protected]>
This is motivated by the fact that p_atomic_read and p_atomic_set may
somewhat surprisingly not do the right thing in the old version:
while
stores and loads are de facto atomic at least on x86,
afaik, this is only true for naturally aligned loads/stores (even for
x86).
Which is all loads and stores in practice, especially in C code
(unaligned pointers are undefined behavior IIRC).
Nicolai
_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev