summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-12-12 00:06:21 -0800
committerEric Anholt <[email protected]>2014-12-12 09:30:35 -0800
commite5eaf8ec600b73de7f52555ce1c9a74883dba941 (patch)
tree0e22fdd32afb78aca659bfa3af11ab3fa37cec74 /src/gallium
parente75e677d288e67c3c05e7b8744e08cd73bdcbed8 (diff)
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.
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/vc4/vc4_fence.c1
1 files changed, 1 insertions, 0 deletions
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