[Wayland-bugs] [Bug 52267] Desktop-shell failing with radeon drm
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Jul 23 23:24:02 PDT 2012
https://bugs.freedesktop.org/show_bug.cgi?id=52267
--- Comment #1 from Vova <vova7890 at mail.ru> 2012-07-24 06:24:02 UTC ---
Regression began from this commits:
http://cgit.freedesktop.org/wayland/weston/commit/?id=76574d1fb7457a0aef14d2fcca6c66f3ffe97cf9
and:
http://cgit.freedesktop.org/wayland/weston/commit/?id=28f59b027a56da58a2cde306d8f0497a8a804ad3
and similar commit yet related to the planar buffers in mesa. I have builds of
weston and mesa befor this commits, on my ati hd 2600xt with radeon it working
fine on X11 and DRI2 backends. All builds after planar buffers commit doesn`t
work on any backends.
> wl_drm at 11: error 2: invalid name
Error happens because in egl_dri2.c[1323]:dri2_wl_reference_buffer result of
call
buffer->driver_buffer =
dri2_dpy->image->createImageFromName(dri2_dpy->dri_screen,
buffer->buffer.width,
buffer->buffer.height,
__DRI_IMAGE_FORMAT_NONE, name,
buffer->stride[0] / 4,
NULL);
with "__DRI_IMAGE_FORMAT_NONE" is NULL.
createImageFromName - is pointer on radeon_screen.c[204]
static __DRIimage *
radeon_create_image_from_name(__DRIscreen *screen,
int width, int height, int format,
int name, int pitch, void *loaderPrivate)
switch (format) {
no have case __DRI_IMAGE_FORMAT_NONE and default return null
default:
free(image);
return NULL;
If make conversion from wayland image format to dri image format and replace
__DRI_IMAGE_FORMAT_NONE to converted format - weston segfault. I don`t know
what to do, but planar buffers commit(somewhere at the time) remove from
dri2_wl_reference_buffer conversion wl format to dri format, and place
__DRI_IMAGE_FORMAT_NONE constant. How the driver know what type of buffer need
create? What need change in driver(?).
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Wayland-bugs
mailing list