vc4: Fix referencing of sync objects.
authorEric Anholt <eric@anholt.net>
Fri, 12 Dec 2014 08:06:21 +0000 (00:06 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 12 Dec 2014 17:30:35 +0000 (09:30 -0800)
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

index c081d51b16f9edf62af2e51b0481e9953e4f9a95..01906cdba0c438cd29a21d002151e6ece31507aa 100644 (file)
@@ -56,6 +56,7 @@ vc4_fence_reference(struct pipe_screen *pscreen,
         if (pipe_reference(&(*p)->reference, &f->reference)) {
                 free(old);
         }
+        *p = f;
 }
 
 static boolean