From 8de5c355fa2bf0f30df2c7cf39aee01e793284bf Mon Sep 17 00:00:00 2001 From: Jesse Barnes Date: Tue, 21 Feb 2012 12:53:09 -0800 Subject: gbm: track buffer format through DRI drivers GBM needs the buffer format in order to communicate with DRM and clients for things like scanout. So track the DRI format requested in the various back ends and use it to return the DRI format back to GBM when requested. GBM will then map this into the GBM surface type (which is in turn based on the DRM fb format list). Signed-off-by: Jesse Barnes --- src/gallium/state_trackers/dri/common/dri_screen.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/state_trackers/dri/common') diff --git a/src/gallium/state_trackers/dri/common/dri_screen.h b/src/gallium/state_trackers/dri/common/dri_screen.h index 8c961955ac9..2818e9c2683 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.h +++ b/src/gallium/state_trackers/dri/common/dri_screen.h @@ -85,6 +85,7 @@ struct __DRIimageRec { struct pipe_resource *texture; unsigned level; unsigned layer; + uint32_t dri_format; void *loader_private; }; -- cgit v1.2.3