summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-07-16 15:08:13 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-07-16 16:29:16 -0400
commit7250cd506baa0bd4649b30d87509cdd0cbc06a57 (patch)
tree866bd56a40a5ebbaf2aa90c27aaf807585b9726e /src/gbm/backends
parent44f066b9ffb7749e872c9cc44ab4d6e2973c2372 (diff)
downloadexternal_mesa3d-7250cd506baa0bd4649b30d87509cdd0cbc06a57.zip
external_mesa3d-7250cd506baa0bd4649b30d87509cdd0cbc06a57.tar.gz
external_mesa3d-7250cd506baa0bd4649b30d87509cdd0cbc06a57.tar.bz2
gbm: Rename gbm_bo_get_pitch to gbm_bo_get_stride
We use pitch for 'pixels per row' and stride for 'bytes per row' pretty consistently in mesa and most other places, so rename the gbm API.
Diffstat (limited to 'src/gbm/backends')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 3aa0616..f09f6ef 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -428,7 +428,7 @@ gbm_dri_bo_import(struct gbm_device *gbm,
bo->base.base.gbm = gbm;
bo->base.base.width = width;
bo->base.base.height = height;
- bo->base.base.pitch = stride;
+ bo->base.base.stride = stride;
bo->base.base.format = gbm_format;
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE,
&bo->base.base.handle.s32);
@@ -494,7 +494,7 @@ gbm_dri_bo_create(struct gbm_device *gbm,
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_HANDLE,
&bo->base.base.handle.s32);
dri->image->queryImage(bo->image, __DRI_IMAGE_ATTRIB_STRIDE,
- (int *) &bo->base.base.pitch);
+ (int *) &bo->base.base.stride);
return &bo->base.base;
}