From 2b20b395541f786e4009211e4c56042257b8d114 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Mon, 25 Jun 2007 10:43:49 +0800 Subject: fix a bug related to display surface --- src/i915_hwmc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/i915_hwmc.c') 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: -- cgit v1.2.3