OSDN Git Service

freedreno: revert bad freedreno/atomic_ops commits
authorEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Feb 2019 09:39:43 +0000 (09:39 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Feb 2019 09:50:26 +0000 (09:50 +0000)
commite09f327765902f3b7d31874ccf0f45b783299bc0
tree0b6e0b22b2372042a81c7656a8f2546ffb74907a
parenteba6609b7bee5a56fa5334992b1e6f3aef8d244a
freedreno: revert bad freedreno/atomic_ops commits

This reverts 6d2379857b6fccc1cade "xf86atomic: #undef internal define"
and b541d21a0a908bf98d44 "freedreno: remove always-defined #ifdef".

I didn't realise at the time that freedreno/freedreno_ringbuffer.h gets
installed, and then used by Mesa for instance. These two commits were
fine in libdrm, but broke Mesa which needs to use struct fd_ringbuffer
but doesn't need to access ::refcnt. The hack that I removed serves to
keep the struct at the correct size while only exposing the ::refcnt
member within libdrm.

Fixes: 6d2379857b6fccc1cade "xf86atomic: #undef internal define"
Fixes: b541d21a0a908bf98d44 "freedreno: remove always-defined #ifdef"
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
freedreno/freedreno_ringbuffer.h
xf86atomic.h