Module: Mesa Branch: master Commit: d8d90ecf30d9fe9c5b59bb4e5591818545f0ca1a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d8d90ecf30d9fe9c5b59bb4e5591818545f0ca1a
Author: Rico Schüller <[email protected]> Date: Wed Aug 21 10:06:42 2013 +0200 vl/query: Only support VDP_CHROMA_TYPE_420 for 12 bit formats. Reviewed-by: Christian König <[email protected]> --- src/gallium/state_trackers/vdpau/query.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/gallium/state_trackers/vdpau/query.c b/src/gallium/state_trackers/vdpau/query.c index 72b1fe9..1d35252 100644 --- a/src/gallium/state_trackers/vdpau/query.c +++ b/src/gallium/state_trackers/vdpau/query.c @@ -122,6 +122,11 @@ vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities(VdpDevice device, VdpChromaTyp pipe_mutex_lock(dev->mutex); switch(bits_ycbcr_format) { + case VDP_YCBCR_FORMAT_NV12: + case VDP_YCBCR_FORMAT_YV12: + *is_supported = surface_chroma_type == VDP_CHROMA_TYPE_420; + break; + case VDP_YCBCR_FORMAT_UYVY: case VDP_YCBCR_FORMAT_YUYV: *is_supported = surface_chroma_type == VDP_CHROMA_TYPE_422; @@ -133,7 +138,7 @@ vlVdpVideoSurfaceQueryGetPutBitsYCbCrCapabilities(VdpDevice device, VdpChromaTyp break; default: - *is_supported = true; + *is_supported = false; break; } _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
