<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [NVE6] Xorg random freeze"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92922#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [NVE6] Xorg random freeze"
href="https://bugs.freedesktop.org/show_bug.cgi?id=92922">bug 92922</a>
from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
<pre>You can try the patch below and see if it ever triggers. Make sure to build
with --enable-debug (otherwise you won't get the assert). You'll also probably
want --enable-texture-float (I'd check how your distro builds it and do the
same thing).
Of course note that if gnome-shell is hitting this... the assert will happen in
gnome-session and it will crash :) If you could run it in gdb and poke around
at things when it does crash that'd be useful.
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
index 205e7dc..d7ee0763 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c
@@ -150,6 +150,7 @@ nvc0_validate_fb(struct nvc0_context *nvc0)
struct nv50_surface *sf = nv50_surface(fb->zsbuf);
int unk = mt->base.base.target == PIPE_TEXTURE_2D;
+ assert(nouveau_bo_memtype(nv04_resource(fb->zsbuf->texture)->bo) <
0xd0);
BEGIN_NVC0(push, NVC0_3D(ZETA_ADDRESS_HIGH), 5);
PUSH_DATAh(push, mt->base.address + sf->offset);
PUSH_DATA (push, mt->base.address + sf->offset);</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>