summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/state_trackers/gbm/gbm_drm.c4
1 files 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 a327fdaae64..eb426efa960 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;
}