mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 09:18:04 +02:00
gbm: Remember to init format on gbm_dri_bo_create.
https://bugs.freedesktop.org/show_bug.cgi?id=60143
(cherry picked from commit 6e226ab5ac)
This commit is contained in:
parent
7a1612a54b
commit
012329e83b
1 changed files with 2 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue