OSDN Git Service

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