diff options
author | Haihao Xiang <haihao.xiang@intel.com> | 2019-09-16 14:52:56 +0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-09-18 09:38:42 -0700 |
commit | fa59ef37ed0a5a1fd585567a2267b0fd9b51e155 (patch) | |
tree | 3d363d78a8591cae85cc946f588d10e1eaaa8a35 | |
parent | 0ff13c291b5ccaa0b6683bd32f081f00614f8e44 (diff) |
i965: support AYUV/XYUV for external import only
Fixes: 89785e2d56e7fa ("i965: add support for sampling from AYUV")
Fixes: 7cab8d3661f243 ("i965: Add support for sampling from XYUV images")
Cc: Vivek Kasireddy <vivek.kasireddy@intel.com>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
(cherry picked from commit 8a9b81ab9dbd44ea4ce87b8fb8ebc4ec3530a3f9)
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index d5f862a90b5..d10f9aeaf90 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1384,6 +1384,8 @@ intel_query_dma_buf_modifiers(__DRIscreen *_screen, int fourcc, int max, for (i = 0; i < num_mods && i < max; i++) { if (f->components == __DRI_IMAGE_COMPONENTS_Y_U_V || f->components == __DRI_IMAGE_COMPONENTS_Y_UV || + f->components == __DRI_IMAGE_COMPONENTS_AYUV || + f->components == __DRI_IMAGE_COMPONENTS_XYUV || f->components == __DRI_IMAGE_COMPONENTS_Y_XUXV || f->components == __DRI_IMAGE_COMPONENTS_Y_UXVX) { external_only[i] = GL_TRUE; |