[Bug 88814] X crashes on current master (optimus setup, csgo game)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jan 27 00:46:51 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88814

--- Comment #2 from Chris Wilson <chris at chris-wilson.co.uk> ---
Hmm. I think that means that sna_pixmap_get_buffer() is NULL, if so the full
debug log will just explode as well. Quite possibly that it is NULL after a
composite redirect - I will have to think about that.

If you apply

diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index fd3edcc..1c26131 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -150,6 +150,8 @@ sna_dri2_get_back(struct sna *sna,
        int flags;
        bool reuse;

+       assert(sna_pixmap_get_buffer(get_drawable_pixmap(draw)));
+
        DBG(("%s: draw size=%dx%d, buffer size=%dx%d, is-scanout? %d, pitch=%d,
front pitch=%d\n",
             __FUNCTION__, draw->width, draw->height,
             get_private(back)->size & 0xffff, get_private(back)->size >> 16,

and compile with --enable-debug (no need for =full, we just want to enable the
assertions), that will confirm the theory.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20150127/f426320e/attachment.html>


More information about the intel-gfx-bugs mailing list