diff options
author | Daniel van Vugt <vanvugt@gmail.com> | 2013-02-07 13:09:58 +0800 |
---|---|---|
committer | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-02-27 10:35:14 +0100 |
commit | 205f537b5afa836e360ff2ee506645f5c4b57c18 (patch) | |
tree | 7448c8244e508436bcefd6ae3edf9dd4de1a36c5 | |
parent | c864835b3d26047e71f997eef25b0fd21a162c0c (diff) |
gbm: Remember to init format on gbm_dri_bo_create.
https://bugs.freedesktop.org/show_bug.cgi?id=60143
(cherry picked from commit 6e226ab5ac7ee4e2cc5ecbc43731c1c2c9eadff4)
-rw-r--r-- | src/gbm/backends/dri/gbm_dri.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 519929ec8f..a3a05307c2 100644 --- a/src/gbm/backends/dri/gbm_dri.c +++ b/src/gbm/backends/dri/gbm_dri.c @@ -481,6 +481,7 @@ create_dumb(struct gbm_device *gbm, bo->base.base.width = width; bo->base.base.height = height; bo->base.base.stride = create_arg.pitch; + bo->base.base.format = format; bo->base.base.handle.u32 = create_arg.handle; bo->handle = create_arg.handle; bo->size = create_arg.size; @@ -529,6 +530,7 @@ gbm_dri_bo_create(struct gbm_device *gbm, bo->base.base.gbm = gbm; bo->base.base.width = width; bo->base.base.height = height; + bo->base.base.format = format; switch (format) { case GBM_FORMAT_RGB565: |