summaryrefslogtreecommitdiff
path: root/src/i915_hwmc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i915_hwmc.c')
-rw-r--r--src/i915_hwmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c
index 58d26c2d..e5c8bd47 100644
--- a/src/i915_hwmc.c
+++ b/src/i915_hwmc.c
@@ -766,15 +766,12 @@ static int I915XvMCInterceptPutImage(ScrnInfoPtr pScrn, short src_x, short src_y
return 1;
}
- mem = pXvMC->sfprivs[i]->surface;
+ mem = pXvMC->sfprivs[i915XvMCData->srfNo]->surface;
buf = pI830->FbBase + mem->offset;
id = i915XvMCData->real_id;
break;
}
- if (i >= I915_XVMC_MAX_SURFACES)
- return 1;
-
break;
default: