[Nouveau] [Bug 27603] [nouveau] Celestia 1.6.0 crashes with nv04_surface_copy_swizzle assertion

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 13 04:18:50 PDT 2010


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

--- Comment #9 from Xavier <shiningxc at gmail.com> 2010-04-13 04:18:49 PDT ---
Don't ask me why, but the stupid hack supposed to break things is what actually
worked best for me (on top of mesa master) :
http://paste.pocoo.org/show/201196/

I still think the proper fix will come with the new 2d engine. So it probably
does not matter much to find how that assert was reached, since it's all
already fixed.

That said, just for completeness, to print dst, you need to :
1) switch to frame 4 nv04_surface_copy_swizzle where the code asserts and where
dst is defined
2) build mesa with -O0 so that the value does not get optimized out

(gdb) frame 4
#4  0xb601c88b in nv04_surface_copy_swizzle (ctx=0x911c300, dst=0x928ec00, 
    dx=0, dy=0, src=0x92da248, sx=0, sy=0, w=64, h=64) at nv04_surface_2d.c:170
170            assert(!(dst->offset & 63));
(gdb) print dst
$1 = (struct pipe_surface *) 0x928ec00
(gdb) print *dst
$2 = {reference = {count = 1}, texture = 0x9339b20, 
  format = PIPE_FORMAT_B8G8R8X8_UNORM, width = 64, height = 64, layout = 0, 
  offset = 21844, usage = 128, zslice = 0, face = 1, level = 0}

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Nouveau mailing list