diff options
author | Ben Widawsky <[email protected]> | 2016-10-26 12:26:51 -0700 |
---|---|---|
committer | Ben Widawsky <[email protected]> | 2017-03-09 15:35:44 -0800 |
commit | ed4cf2440d87b512f9dcf7cfc3f408c151854af9 (patch) | |
tree | d1992362c0a846d6c828499dad74b56afbc417b0 /src/gbm/main/gbm.c | |
parent | f9567ab435217a72cbae628336ead84dc0b2a803 (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/gbm.c')
-rw-r--r-- | src/gbm/main/gbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 066ceffc0a3..7462e90c4c5 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -165,7 +165,7 @@ gbm_bo_get_height(struct gbm_bo *bo) GBM_EXPORT uint32_t gbm_bo_get_stride(struct gbm_bo *bo) { - return bo->stride; + return bo->gbm->bo_get_stride(bo, 0); } /** Get the format of the buffer object |