diff options
author | Leo Liu <[email protected]> | 2017-08-18 12:12:05 -0400 |
---|---|---|
committer | Leo Liu <[email protected]> | 2017-08-21 10:09:09 -0400 |
commit | 7319ff87871c8e5f909a1674cd60279ef53cbbd0 (patch) | |
tree | 0f53e452cb1ed01b214e6aa7c1be3c7e1a1a8ecb /src/gallium/drivers/radeonsi/si_uvd.c | |
parent | c4061bb5fa1c15a77ded16f1de3a4bfa2df20384 (diff) |
radeon/uvd: add YUYV format support for target buffer
Make chroma plane optional for YUYV support
Signed-off-by: Leo Liu <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_uvd.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_uvd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_uvd.c b/src/gallium/drivers/radeonsi/si_uvd.c index d17a6656a46..2441ad248c6 100644 --- a/src/gallium/drivers/radeonsi/si_uvd.c +++ b/src/gallium/drivers/radeonsi/si_uvd.c @@ -131,7 +131,7 @@ static struct pb_buffer* si_uvd_set_dtb(struct ruvd_msg *msg, struct vl_video_bu msg->body.decode.dt_field_mode = buf->base.interlaced; - ruvd_set_dt_surfaces(msg, &luma->surface, &chroma->surface, type); + ruvd_set_dt_surfaces(msg, &luma->surface, (chroma) ? &chroma->surface : NULL, type); return luma->resource.buf; } |