summaryrefslogtreecommitdiffstats
path: root/src/gbm/main/gbmint.h
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2016-10-26 12:26:51 -0700
committerBen Widawsky <[email protected]>2017-03-09 15:35:44 -0800
commited4cf2440d87b512f9dcf7cfc3f408c151854af9 (patch)
treed1992362c0a846d6c828499dad74b56afbc417b0 /src/gbm/main/gbmint.h
parentf9567ab435217a72cbae628336ead84dc0b2a803 (diff)
gbm: Create a gbm_device getter for stride
This will be used so we can query information per plane. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Cc: Jason Ekstrand <[email protected]> Acked-by: Daniel Stone <[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 0ec531d0991..26d18bab6bf 100644
--- a/src/gbm/main/gbmint.h
+++ b/src/gbm/main/gbmint.h
@@ -78,6 +78,7 @@ struct gbm_device {
int (*bo_get_fd)(struct gbm_bo *bo);
int (*bo_get_planes)(struct gbm_bo *bo);
union gbm_bo_handle (*bo_get_handle)(struct gbm_bo *bo, int plane);
+ uint32_t (*bo_get_stride)(struct gbm_bo *bo, int plane);
void (*bo_destroy)(struct gbm_bo *bo);
struct gbm_surface *(*surface_create)(struct gbm_device *gbm,