swr: fix icc compile error
authorBruce Cherniak <bruce.cherniak@intel.com>
Fri, 23 Dec 2016 00:06:41 +0000 (18:06 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 23 Dec 2016 14:36:21 +0000 (08:36 -0600)
ICC doesn't like the use of nullptr (std::nullptr_t) argument in
p_atomic_set.  GCC and clang don't complain.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99119
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/swr_fence_work.cpp

index 3f83e61512effaa2855952204862c3d58bc2ba59..1fd2a834afc4ff7835c48a62778596242597b8cc 100644 (file)
@@ -39,7 +39,7 @@ swr_fence_do_work(struct swr_fence *fence)
       work = fence->work.head.next;
       /* Immediately clear the head so any new work gets added to a new work
        * queue */
-      p_atomic_set(&fence->work.head.next, nullptr);
+      p_atomic_set(&fence->work.head.next, 0);
       p_atomic_set(&fence->work.tail, &fence->work.head);
       p_atomic_set(&fence->work.count, 0);