[Intel-gfx] [PATCH] XvMC: hook up bo passthrough for i915 class hw

Lukas Hejtmanek xhejtman at ics.muni.cz
Wed Dec 2 13:04:35 CET 2009


On Wed, Dec 02, 2009 at 12:28:51PM +0100, Daniel Vetter wrote:
> ... except for i915G/GM, they need special care (and kernel support).
> This is fully untested, but it might actually work;)
> 
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  src/i830_video.c |   10 ++++++++--
>  src/i915_hwmc.c  |    2 +-
>  2 files changed, 9 insertions(+), 3 deletions(-)
> 
> diff --git a/src/i830_video.c b/src/i830_video.c
> index 8457764..b549e51 100644
> --- a/src/i830_video.c
> +++ b/src/i830_video.c
> @@ -1566,9 +1566,15 @@ I830PutImageTextured(ScrnInfoPtr scrn,
>  				drm_intel_bo_gem_create_from_name(intel->bufmgr,
>  								  "xvmc surface",
>  								  (uintptr_t)buf);
> +		} else if (IS_I915(intel)
> +				&& !(IS_I915G(intel) || IS_I915GM(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 */
> +			/* XXX: i915G/GM is not support and needs some serious
                                                ^^^^^^^
> +			 * care.  grep for KMS in i915_hwmc.c */

Just a cosmetic note:
XXX: i915G/GM is not support*ed*

-- 
Lukáš Hejtmánek



More information about the Intel-gfx mailing list