<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ben@bwidawsk.net" title="Ben Widawsky <ben@bwidawsk.net>"> <span class="fn">Ben Widawsky</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - [G45] Segmentation fault in get_stencil_miptree"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92103">bug 92103</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ben@bwidawsk.net
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [G45] Segmentation fault in get_stencil_miptree"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92103#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [G45] Segmentation fault in get_stencil_miptree"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92103">bug 92103</a>
from <span class="vcard"><a class="email" href="mailto:ben@bwidawsk.net" title="Ben Widawsky <ben@bwidawsk.net>"> <span class="fn">Ben Widawsky</span></a>
</span></b>
<pre>You could try:
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c
b/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
*depth_mt,
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;</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>