From e5eaf8ec600b73de7f52555ce1c9a74883dba941 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 12 Dec 2014 00:06:21 -0800 Subject: [PATCH] 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. --- src/gallium/drivers/vc4/vc4_fence.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2