From ecd6fce2611e88ff8468a354cff8eda39f260a31 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 31 Aug 2016 17:44:01 -0400 Subject: mesa/st: support lowering multi-planar YUV Support multi-planar YUV for external EGLImage's (currently just in the dma-buf import path) by lowering to multiple texture fetch's for each plane and CSC in shader. There was some discussion of alternative approaches for tracking the additional UV or U/V planes: https://lists.freedesktop.org/archives/mesa-dev/2016-September/127832.html They all seemed worse than pipe_resource::next Signed-off-by: Rob Clark --- src/gallium/include/state_tracker/st_api.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/include/state_tracker') diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h index 21d5177aa2f..06abfc56507 100644 --- a/src/gallium/include/state_tracker/st_api.h +++ b/src/gallium/include/state_tracker/st_api.h @@ -200,6 +200,9 @@ struct st_egl_image /* this is owned by the caller */ struct pipe_resource *texture; + /* format only differs from texture->format for multi-planar (YUV): */ + enum pipe_format format; + unsigned level; unsigned layer; }; -- cgit v1.2.3