[Bug 92103] [G45] Segmentation fault in get_stencil_miptree

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Dec 30 00:57:27 UTC 2016


Ben Widawsky <ben at bwidawsk.net> changed:

           What    |Removed                     |Added
                 CC|                            |ben at bwidawsk.net

--- Comment #7 from Ben Widawsky <ben at bwidawsk.net> ---
You could try:

diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c
index 40a8d07bfb..ae4967f15d 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -224,7 +224,7 @@ brw_get_depthstencil_tile_masks(struct intel_mipmap_tree
 static struct intel_mipmap_tree *
 get_stencil_miptree(struct intel_renderbuffer *irb)
-   if (!irb)
+   if (!irb || !irb->mt)
       return NULL;
    if (irb->mt->stencil_mt)
       return irb->mt->stencil_mt;

You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20161230/d10d647b/attachment.html>

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