aboutsummaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbmint.h
diff options
context:
space:
mode:
authorJesse Barnes <[email protected]>2012-02-21 12:53:09 -0800
committerJesse Barnes <[email protected]>2012-02-22 09:41:40 -0800
commit8de5c355fa2bf0f30df2c7cf39aee01e793284bf (patch)
tree4001a8ba5a618e607626610532a67fe080f7d8f4 /src/gbm/main/gbmint.h
parentd35d3d612acef1612aaab9a923b8814d4dbb4d9c (diff)
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 <[email protected]>
Diffstat (limited to 'src/gbm/main/gbmint.h')
-rw-r--r--src/gbm/main/gbmint.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gbm/main/gbmint.h b/src/gbm/main/gbmint.h
index 9e4072ef6ea..66c4c41cf8e 100644
--- a/src/gbm/main/gbmint.h
+++ b/src/gbm/main/gbmint.h
@@ -83,6 +83,7 @@ struct gbm_bo {
uint32_t width;
uint32_t height;
uint32_t pitch;
+ uint32_t format;
union gbm_bo_handle handle;
};