diff options
author | Christian König <[email protected]> | 2012-03-02 13:07:01 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-03-08 11:37:02 +0100 |
commit | d5fc3746fe3a337bccba0d644543633b728b9444 (patch) | |
tree | 42a5431dff7d9e63fc783d64a6be6d9f3a7e2293 /src/gallium | |
parent | 5d5b414a7b840a4a90050041fabd88a9af6dca43 (diff) |
st/vdpau: cleanup YCBCR matching functions
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/vdpau/vdpau_private.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/vdpau/vdpau_private.h b/src/gallium/state_trackers/vdpau/vdpau_private.h index 2898a863243..b0272d7c938 100644 --- a/src/gallium/state_trackers/vdpau/vdpau_private.h +++ b/src/gallium/state_trackers/vdpau/vdpau_private.h @@ -102,10 +102,10 @@ FormatYCBCRToPipe(VdpYCbCrFormat vdpau_format) return PIPE_FORMAT_UYVY; case VDP_YCBCR_FORMAT_YUYV: return PIPE_FORMAT_YUYV; - case VDP_YCBCR_FORMAT_Y8U8V8A8: /* Not defined in p_format.h */ - return PIPE_FORMAT_NONE; + case VDP_YCBCR_FORMAT_Y8U8V8A8: + return PIPE_FORMAT_R8G8B8A8_UNORM; case VDP_YCBCR_FORMAT_V8U8Y8A8: - return PIPE_FORMAT_VUYA; + return PIPE_FORMAT_B8G8R8A8_UNORM; default: assert(0); } @@ -125,9 +125,9 @@ PipeToFormatYCBCR(enum pipe_format p_format) return VDP_YCBCR_FORMAT_UYVY; case PIPE_FORMAT_YUYV: return VDP_YCBCR_FORMAT_YUYV; - //case PIPE_FORMAT_YUVA: - // return VDP_YCBCR_FORMAT_Y8U8V8A8; - case PIPE_FORMAT_VUYA: + case PIPE_FORMAT_R8G8B8A8_UNORM: + return VDP_YCBCR_FORMAT_Y8U8V8A8; + case PIPE_FORMAT_B8G8R8A8_UNORM: return VDP_YCBCR_FORMAT_V8U8Y8A8; default: assert(0); |