From 5f567cb226619189e60c22d026cc9772b13053cc Mon Sep 17 00:00:00 2001 From: Daniel van Vugt Date: Thu, 7 Feb 2013 13:09:58 +0800 Subject: [PATCH] gbm: Remember to init format on gbm_dri_bo_create. https://bugs.freedesktop.org/show_bug.cgi?id=60143 diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index 519929e..a3a0530 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: -- 1.7.10.4