[Glamor] very slow 2d with radeonsi and glamor
Michel Dänzer
michel at daenzer.net
Tue Jun 11 03:34:42 PDT 2013
On Die, 2013-06-11 at 06:59 +0300, Александр wrote:
> В письме от Понедельник, 10-июн-2013 17:09:46 Вы написали:
> > On Son, 2013-06-09 at 19:43 +0800, zhigang gong wrote:
> > > A quick look at your xorg.log, I get the following information. It's
> > > obvious that there are some low level driver issue which prevent
> > > glamor get a valid texture from the low level drm buffer object.
> > > You maybe need to ask this question at AMD's open source driver mail
> > > list to get help.
> > >
> > >
> > > [ 3924.726] (WW) RADEON(0): Failed to create textured DRI2/PRIME
> > > pixmap.(WW) Access a DRM only pixmap is not allowed within glamor.
> > > [ 3924.727] (WW) RADEON(0): Failed to get DRI drawable for glamor
> > > pixmap.
> >
> > AFAICT it looks like this is from _glamor_egl_create_image() failing in
> > glamor_egl_create_textured_pixmap(). Alexandr, can you add debugging
> > output in the former to see if it's due to depth not being 24 or 32, or
> > due to the EGL create image call failing? And if it's the latter, it
> > would be great if you could continue the same approach down the call
> > chain to find where the failure originates.
>
> yes, how can i create all needed logs ?
The patch below should show why _glamor_egl_create_image() fails.
diff --git a/src/glamor_egl.c b/src/glamor_egl.c
index cd0bdc0..ac3fc0c 100644
--- a/src/glamor_egl.c
+++ b/src/glamor_egl.c
@@ -174,15 +174,18 @@ _glamor_egl_create_image(struct glamor_egl_screen_private *glamor_egl,
attribs[1] = width;
attribs[3] = height;
attribs[5] = stride;
- if (depth != 32 && depth != 24)
+ if (depth != 32 && depth != 24) {
+ ErrorF("%s: unsupported depth %d\n", __func__, depth);
return EGL_NO_IMAGE_KHR;
+ }
image = glamor_egl->egl_create_image_khr(glamor_egl->display,
glamor_egl->context,
EGL_DRM_BUFFER_MESA,
(void *) (uintptr_t)name, attribs);
- if (image == EGL_NO_IMAGE_KHR)
+ if (image == EGL_NO_IMAGE_KHR) {
+ ErrorF("%s: egl_create_image_khr failed\n", __func__);
return EGL_NO_IMAGE_KHR;
-
+ }
return image;
}
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Debian, X and DRI developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/glamor/attachments/20130611/b94fb400/attachment-0001.pgp>
More information about the Glamor
mailing list