From: Eric Anholt Date: Fri, 12 Dec 2014 08:06:21 +0000 (-0800) Subject: vc4: Fix referencing of sync objects. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5eaf8ec600b73de7f52555ce1c9a74883dba941;p=mesa.git vc4: Fix referencing of sync objects. While the pipe_reference_* helpers set the pointer, a bare pipe_reference doesn't. Fixes 5 ARB_sync tests. --- diff --git a/src/gallium/drivers/vc4/vc4_fence.c b/src/gallium/drivers/vc4/vc4_fence.c index c081d51b16f..01906cdba0c 100644 --- a/src/gallium/drivers/vc4/vc4_fence.c +++ b/src/gallium/drivers/vc4/vc4_fence.c @@ -56,6 +56,7 @@ vc4_fence_reference(struct pipe_screen *pscreen, if (pipe_reference(&(*p)->reference, &f->reference)) { free(old); } + *p = f; } static boolean