[Mesa-dev] [Bug 60143] New: gbm_dri_bo_create fails to initialize bo->base.base.format

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jan 31 21:42:28 PST 2013


          Priority: medium
            Bug ID: 60143
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: gbm_dri_bo_create fails to initialize
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: daniel.van.vugt at 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

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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130201/a1d5a080/attachment-0001.html>

More information about the mesa-dev mailing list