[Intel-gfx] [PATCH 6/7] Xv: consolidate xmvc passthrough handling
Shuang He
shuang.he at intel.com
Wed Dec 2 03:05:49 CET 2009
Daniel Vetter wrote:
>
> - if (!i830_copy_video_data(scrn, adaptor_priv, width, height,
> - &dstPitch, &dstPitch2,
> - top, left, npixels, nlines, id, buf))
> - return BadAlloc;
> + if (xvmc_passthrough(id)) {
> + i830_free_video_buffers(adaptor_priv);
> + if (IS_I965G(intel)) {
> + adaptor_priv->buf =
> + drm_intel_bo_gem_create_from_name(intel->bufmgr,
> + "xvmc surface",
> + (uintptr_t)buf);
> + } else {
> + /* XXX: i915 is not support and needs some serious care.
> + * grep for KMS in i915_hwmc.c */
> + return BadAlloc;
>
XvMC is supported on 945GM for KMS.
In i915_hwmc.c it means only 915G and 915GM, not all i915 (915G/GM,
945G/GM, G33, ...) platforms.
Thanks
--Shuang
> + }
> + } else {
> + if (!i830_copy_video_data(scrn, adaptor_priv, width, height,
> + &dstPitch, &dstPitch2,
> + top, left, npixels, nlines, id, buf))
> + return BadAlloc;
> + }
>
> if (crtc && adaptor_priv->SyncToVblank != 0) {
> i830_wait_for_scanline(scrn, pixmap, crtc, clipBoxes);
>
More information about the Intel-gfx
mailing list