summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2009-12-10 03:51:35 +0100
committerRoland Scheidegger <[email protected]>2009-12-10 03:51:35 +0100
commit71f4267ac23f52dcc94590cb94c3e0ce451662aa (patch)
treed7bc9286cfea6731ae6c027f6c1f149cc9a971fe /src
parentc6b450033d7ec2a415b1d761da1d94588358c94b (diff)
winsys/intel: fix dereferencing of opaque type due to pipe_reference changes
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_drm_fence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c b/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
index b6248a3bcf7..e8b58742ab7 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_drm_fence.c
@@ -39,7 +39,7 @@ intel_drm_fence_reference(struct intel_winsys *iws,
struct intel_drm_fence *old = (struct intel_drm_fence *)*ptr;
struct intel_drm_fence *f = (struct intel_drm_fence *)fence;
- if (pipe_reference(&(*ptr)->reference, &f->reference)) {
+ if (pipe_reference(&((struct intel_drm_fence *)(*ptr))->reference, &f->reference)) {
if (old->bo)
drm_intel_bo_unreference(old->bo);
FREE(old);