summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/dri/common/dri_screen.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2012-08-31 19:48:26 +0200
committerJakob Bornecrantz <jakob@vmware.com>2012-08-31 19:51:02 +0200
commit6a7dea93fa70d670a5954e47a47075a2703209d4 (patch)
treec304ff1541078fa21e2c313435f8a64b58bf57c2 /src/gallium/state_trackers/dri/common/dri_screen.h
parent022f6d88616bf5ea3903c5056d6147e9cf356aa9 (diff)
dri: Rework planar image interface
As discussed with Kristian on #wayland. Pushes the decision of components into the dri driver giving it greater freedom to allow t to implement YUV samplers in hardware, and which mode to use. This interface will also allow drivers like SVGA to implement YUV surfaces without the need to sub-allocate and instead send 3 seperate buffers for each channel, currently not implemented. I have tested these changes on Gallium Svga. Scott tested them on both intel and Gallium Radeon. Kristan and Pekka tested them on intel. v2: Fix typo in dri2_from_planar. v3: Merge in intel changes. Tested-by: Scott Moreau <oreaus@gmail.com> Tested-by: Pekka Paalanen <ppaalanen@gmail.com> Tested-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'src/gallium/state_trackers/dri/common/dri_screen.h')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h
index 2818e9c2683..ff48b022157 100644
--- a/src/gallium/state_trackers/dri/common/dri_screen.h
+++ b/src/gallium/state_trackers/dri/common/dri_screen.h
@@ -86,6 +86,7 @@ struct __DRIimageRec {
unsigned level;
unsigned layer;
uint32_t dri_format;
+ uint32_t dri_components;
void *loader_private;
};