[Bug 86281] brw_meta_fast_clear (brw=brw at entry=0x7fffd4097a08, fb=fb at entry=0x7fffd40fa900, buffers=buffers at entry=2, partial_clear=partial_clear at entry=false)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jul 4 17:08:39 PDT 2015


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

--- Comment #14 from Martin Sandsmark <sandsmark at samfundet.no> ---
I can reproduce it here on ArchLinux with broadwell. Googling a bit shows it
happening for people using xbmc, gnome shell or plasma on various distros.

I just hacked in a null check to stop the crashing for now (hard to work when
the desktop shell keeps crashing):

diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
index 5b8191c..f0e5e77 100644
--- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
+++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c
@@ -442,6 +442,10 @@ brw_meta_fast_clear(struct brw_context *brw, struct
gl_framebuffer *fb,
       if (rb == NULL)
          continue;

+      // For some reason this render buffer can lack a mipmap tree
+      if (irb->mt == NULL)
+          continue;
+
       clear_type = FAST_CLEAR;

       /* We don't have fast clear until gen7. */

-- 
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-3d-bugs/attachments/20150705/d81f3499/attachment.html>


More information about the intel-3d-bugs mailing list