summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/swr_fence_work.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/swr/swr_fence_work.cpp b/src/gallium/drivers/swr/swr_fence_work.cpp
index 3f83e61512e..1fd2a834afc 100644
--- a/src/gallium/drivers/swr/swr_fence_work.cpp
+++ b/src/gallium/drivers/swr/swr_fence_work.cpp
@@ -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);