summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-12-25 08:32:47 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-12-25 08:32:47 +0800
commited9ff6f30fff33fe2d60715f1b503047f8e1ef01 (patch)
tree844a6d6b72b3a6af3a6d76c63933913e552187fb /src/i830_video.c
parentf0ced5edaeec3e7741828eab728417843326d56f (diff)
xvmc: consolidate put surface interfaces
Make surface list track like context list, and move generic PutSurface code out of i915. So MC driver just needs to fill specific the command params, and we can get one single type of intel xvmc command to issue, ddx driver's put_image_size got removed. Fix last commit with missing XvMCContext assignment. Fix priv_data free with apropriate X11 XFree.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index 1f82ce44..967fda92 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -2552,7 +2552,7 @@ I830QueryImageAttributes(ScrnInfoPtr pScrn,
#ifdef INTEL_XVMC
case FOURCC_XVMC:
*h = (*h + 1) & ~1;
- size = intel_xvmc_put_image_size(pScrn);
+ size = sizeof(struct intel_xvmc_command);
if (pitches)
pitches[0] = size;
break;