summaryrefslogtreecommitdiff
path: root/src/i915_hwmc.c
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2007-06-25 10:43:49 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2007-07-19 17:28:35 +0800
commit2b20b395541f786e4009211e4c56042257b8d114 (patch)
treedf89e739844830890433a45ddd162ea79f077c83 /src/i915_hwmc.c
parent6e47601ac7427390fa4cb6e228dfb566ff95db09 (diff)
fix a bug related to display surface
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: