i965: don't require 64bit cmpxchg
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 5 Mar 2017 21:23:25 +0000 (23:23 +0200)
committerMatt Turner <mattst88@gmail.com>
Mon, 6 Mar 2017 19:07:20 +0000 (11:07 -0800)
commitb384c23b9e804916f125354e06c735bd3bb22811
tree954b253540e10783f32879f0fa4eeb4b59012374
parent290d7e892dfa6d04767142f4f6d7ec689933a105
i965: don't require 64bit cmpxchg

There are still some distributions trying to support unfortunate people
with old or exotic CPUs that don't have 64bit atomic operations. The
only thing preventing compile of the Intel driver for them seems to be
initialization of a debug variable.

v2: use call_once() instead of unsafe code, as suggested by Matt Turner

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93089
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
src/intel/common/gen_debug.c