aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2019-02-26 18:41:07 +0100
committerChristian Gmeiner <[email protected]>2019-03-11 22:19:11 +0100
commit076a7095bb46cd11ac1938be1652f5fdf862467b (patch)
tree818db1a7d809ec5922c49531cf0a98f4731cb46e /src/gallium/state_trackers/dri
parent04ff2e3fbbb981606aa4d469316f6f00cc8083db (diff)
st/dri: allow direct UYVY import
Push this format to the pipe driver unchanged. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r--src/gallium/state_trackers/dri/dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c
index 01e88d7c50a..efb43c0d797 100644
--- a/src/gallium/state_trackers/dri/dri2.c
+++ b/src/gallium/state_trackers/dri/dri2.c
@@ -110,6 +110,8 @@ static const struct dri2_format_mapping dri2_format_table[] = {
__DRI_IMAGE_COMPONENTS_Y_UV, PIPE_FORMAT_NV12 },
{ __DRI_IMAGE_FOURCC_YUYV, __DRI_IMAGE_FORMAT_YUYV,
__DRI_IMAGE_COMPONENTS_Y_XUXV, PIPE_FORMAT_YUYV },
+ { __DRI_IMAGE_FOURCC_UYVY, __DRI_IMAGE_FORMAT_UYVY,
+ __DRI_IMAGE_COMPONENTS_Y_UXVX, PIPE_FORMAT_UYVY },
};
static const struct dri2_format_mapping *