projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7242b03
)
gbm: Remember to init format on gbm_dri_bo_create.
author
Daniel van Vugt
<vanvugt@gmail.com>
Thu, 7 Feb 2013 05:09:58 +0000
(13:09 +0800)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 8 Feb 2013 01:00:52 +0000
(20:00 -0500)
https://bugs.freedesktop.org/show_bug.cgi?id=60143
src/gbm/backends/dri/gbm_dri.c
patch
|
blob
|
history
diff --git
a/src/gbm/backends/dri/gbm_dri.c
b/src/gbm/backends/dri/gbm_dri.c
index 519929ec8f6ae47525c52cd89f697f9578a67cf6..a3a05307c2609371534fc9d7449c543f3991ae3c 100644
(file)
--- 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: