[Mesa-dev] [PATCH] st/gbm: renaming pitch to stride on gallium
Elvis Lee
kwangwoong.lee at lge.com
Tue Jul 17 04:28:57 PDT 2012
commit '7250cd506baa0bd4649b30d87509cdd0cbc06a57'
changes struct gbm_bo, renaming it's 'pitch' to 'stride'.
This applies to Gallium.
Signed-off-by: Elvis Lee <kwangwoong.lee at lge.com>
---
src/gallium/state_trackers/gbm/gbm_drm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/gbm/gbm_drm.c b/src/gallium/state_trackers/gbm/gbm_drm.c
index a327fda..eb426ef 100644
--- a/src/gallium/state_trackers/gbm/gbm_drm.c
+++ b/src/gallium/state_trackers/gbm/gbm_drm.c
@@ -131,7 +131,7 @@ gbm_gallium_drm_bo_create_from_egl_image(struct gbm_device *gbm,
gdrm->screen->resource_get_handle(gdrm->screen, bo->resource, &whandle);
bo->base.base.handle.u32 = whandle.handle;
- bo->base.base.pitch = whandle.stride;
+ bo->base.base.stride = whandle.stride;
return &bo->base.base;
}
@@ -180,7 +180,7 @@ gbm_gallium_drm_bo_create(struct gbm_device *gbm,
gdrm->screen->resource_get_handle(gdrm->screen, bo->resource, &whandle);
bo->base.base.handle.u32 = whandle.handle;
- bo->base.base.pitch = whandle.stride;
+ bo->base.base.stride = whandle.stride;
return &bo->base.base;
}
--
1.7.9.5
More information about the mesa-dev
mailing list