diff options
author | Rico Schüller <[email protected]> | 2013-08-21 10:06:42 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2013-08-21 11:25:10 +0200 |
commit | d8d90ecf30d9fe9c5b59bb4e5591818545f0ca1a (patch) | |
tree | da4afdff4526216f11eeb97186ecf53ede4a0398 /src/gallium/state_trackers/vdpau/query.c | |
parent | 4b45b61fef6e0f3325888c190e6e557d8948b31a (diff) |
vl/query: Only support VDP_CHROMA_TYPE_420 for 12 bit formats.
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/query.c')
-rw-r--r-- | 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 72b1fe91b83..1d352528ce1 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; } |