OSDN Git Service

minigbm: add width and height in dumb create
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 6 Dec 2016 23:43:17 +0000 (15:43 -0800)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 13 Dec 2016 02:34:23 +0000 (18:34 -0800)
We never set the width and height in drv_dumb_bo_create.
We really should do this.

TEST=none
BUG=none

Change-Id: I630866bcf5086fbb3679f772fe0f2857d37f22c2
Reviewed-on: https://chromium-review.googlesource.com/417164
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
helpers.c

index 23d17bd..f6fd0ec 100644 (file)
--- a/helpers.c
+++ b/helpers.c
@@ -153,6 +153,8 @@ int drv_dumb_bo_create(struct bo *bo, uint32_t width, uint32_t height,
                return ret;
        }
 
+       bo->width = width;
+       bo->height = height;
        bo->handles[0].u32 = create_dumb.handle;
        bo->offsets[0] = 0;
        bo->total_size = bo->sizes[0] = create_dumb.size;