st/gbm: renaming pitch to stride on gallium
authorElvis Lee <kwangwoong.lee@lge.com>
Tue, 17 Jul 2012 11:28:57 +0000 (20:28 +0900)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 17 Jul 2012 14:54:00 +0000 (10:54 -0400)
commit '7250cd506baa0bd4649b30d87509cdd0cbc06a57'
changes struct gbm_bo, renaming it's 'pitch' to 'stride'.
This applies to Gallium.

Signed-off-by: Elvis Lee <kwangwoong.lee@lge.com>
src/gallium/state_trackers/gbm/gbm_drm.c

index a327fdaae64f871aac552ee27cb6994de29dde66..eb426efa9603c6360f3b0f99ea02051e21cae5f3 100644 (file)
@@ -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;
 }