diff options
author | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-06-23 15:49:29 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-07-21 10:59:51 +0800 |
commit | 736bed6734cf1a070fc7da6a1384edc5fd466887 (patch) | |
tree | 73c33b0e94dec69a5f89c0a97ae942de671e5f0d /src/xvmc | |
parent | c61480f420445f7e3341305362b8cea656b0f7a2 (diff) |
xvmc: formalize surface type definition
We should also carefully select surface type id.
(cherry picked from commit 7a705081788bf957409e17baa5f189241589057c)
Diffstat (limited to 'src/xvmc')
-rw-r--r-- | src/xvmc/i915_xvmc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/xvmc/i915_xvmc.c b/src/xvmc/i915_xvmc.c index 519de5a3..bd31de44 100644 --- a/src/xvmc/i915_xvmc.c +++ b/src/xvmc/i915_xvmc.c @@ -1850,9 +1850,8 @@ static int i915_xvmc_mc_render_surface(Display *display, XvMCContext *context, if (!(privTarget = target_surface->privData)) return XvMCBadSurface; - /* Test For YV12 Surface */ - if (context->surface_type_id != FOURCC_YV12) { - XVMC_ERR("HWMC only possible on YV12 Surfaces."); + if (context->surface_type_id >= SURFACE_TYPE_MAX) { + XVMC_ERR("Unsupprted surface_type_id %d.", context->surface_type_id); return BadValue; } |