Mesa (master): vc4: Fix referencing of sync objects.

Eric Anholt anholt at kemper.freedesktop.org
Fri Dec 12 17:36:44 UTC 2014


Module: Mesa
Branch: master
Commit: e5eaf8ec600b73de7f52555ce1c9a74883dba941
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5eaf8ec600b73de7f52555ce1c9a74883dba941

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Dec 12 00:06:21 2014 -0800

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 c081d51..01906cd 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




More information about the mesa-commit mailing list