Launchpad has imported 1 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=60143.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2013-02-01T05:42:28+00:00 Daniel van Vugt wrote:

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);

Reply at:
https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/1112147/comments/1


** Changed in: mesa
       Status: Unknown => Confirmed

** Changed in: mesa
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to mesa in Ubuntu.
https://bugs.launchpad.net/bugs/1112147

Title:
  gbm_dri_bo_create fails to initialize bo->base.base.format

Status in Mesa:
  Confirmed
Status in “mesa” package in Ubuntu:
  In Progress

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mesa/+bug/1112147/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to