https://bugs.freedesktop.org/show_bug.cgi?id=60143
Priority: medium Bug ID: 60143 Assignee: mesa-dev@lists.freedesktop.org Summary: gbm_dri_bo_create fails to initialize bo->base.base.format Severity: normal Classification: Unclassified OS: All Reporter: daniel.van.v...@canonical.com Hardware: Other Status: NEW Version: 9.0 Component: Other Product: Mesa Calling gbm_bo_create() with format == GBM_BO_FORMAT_ARGB8888 completes successfully. However reading back the format via gbm_bo_get_format() returns GBM_BO_FORMAT_XRGB8888. The problem seems to be that the bo internal structure is initialized to zero by calloc, but the format field is never set by gbm_dri_bo_create, so it stays zero (GBM_BO_FORMAT_XRGB8888) even when the real image format is something different. Should be a simple fix in gbm_dri_bo_create(). Just add: bo->base.base.format = gbm_dri_to_gbm_format(dri_format); -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev