Skip to contentSkip to conversation

New: Division by Zero error with glDrawRangeElementsEXT()

Bug 27199 [email protected] 1 participant 6 messages Mar 19, 2010 – Dec 24, 2010

lore
Share & tools
lore
#0 lore raw

http://bugs.freedesktop.org/show_bug.cgi?id=27199

Summary: Division by Zero error with glDrawRangeElementsEXT()
Product: Mesa
Version: git
Platform: x86 (IA32)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]

Created an attachment (id=34243)
--> (http://bugs.freedesktop.org/attachment.cgi?id=34243)
Full stack

This error kills World of Warcraft almost immediately on entering Azeroth. (Login screens seem OK). Full stack trace is attached, but the part relevant to R300 reads:

=Backtrace:

Quoted 1 line

0 0x7de37b40 emit_zb_offset+0x50() in r300_dri.so (0x0039f1fc)

1 0x7de4b872 radeonEmitState+0x4b2() in r300_dri.so (0x0039f26c) 2 0x7de32f20 r300DrawPrims+0xc30() in r300_dri.so (0x0039f31c) 3 0x7dee657b vbo_validated_drawrangeelements+0x10b() in r300_dri.so
(0x0039f38c)
4 0x7dee69a4 vbo_exec_DrawRangeElements+0x54() in r300_dri.so (0x0039f3bc) 5 0x7dedafcb neutral_DrawRangeElements+0xab() in r300_dri.so (0x0039f3ec) 6 0x7ed78291 wine_glDrawRangeElementsEXT+0xb1() in opengl32 (0x0039f44c)

This is with Mesa-git, xf86-drv-ati from git, libdrm-2.4.18 from F13, vanilla kernel 2.6.33.1.

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

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#1 lore raw

[Bug 27199] Division by Zero error with glDrawRangeElementsEXT()

http://bugs.freedesktop.org/show_bug.cgi?id=27199

Chris Rankin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #34243|Full stack                  |Full WoW output, including
        description|                            |backtrace.
Signature · 11 lines
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#2 lore raw

[Bug 27199] Division by Zero error with glDrawRangeElementsEXT()

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=27199

--- Comment #1 from Chris Rankin <[email protected]> 2010-03-19 07:47:07 PST --- This bus is also present in F12's Mesa 7.7-4 packages.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#3 lore raw

[Bug 27199] Division by Zero error with glDrawRangeElementsEXT()

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=27199

--- Comment #2 from Chris Rankin <[email protected]> 2010-03-19 08:25:16 PST --- This crash stopped happening after I added the following hack:

src/mesa/drivers/dri/r300/r300_cmdbuf.c +0 -0
@@ -424,7 +424,7 @@ static void emit_zb_offset(GLcontext *ctx, struct

radeon_sta

        uint32_t dw = atom->check(ctx, atom);

        rrb = radeon_get_depthbuffer(&r300->radeon);
-       if (!rrb)
+       if (!rrb || (rrb->cpp == 0))
                return;

        zbpitch = (rrb->pitch / rrb->cpp);

However, this did result in a couple of "no rrb" messages in my output log. There were also a lot of artifacts present (see attachment), although that may be a separate bug.

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#4 lore raw

[Bug 27199] Division by Zero error with glDrawRangeElementsEXT()

In reply to [email protected]

http://bugs.freedesktop.org/show_bug.cgi?id=27199

--- Comment #3 from Chris Rankin <[email protected]> 2010-03-19 08:48:58 PST --- Created an attachment (id=34245)
--> (http://bugs.freedesktop.org/attachment.cgi?id=34245)
WoW screenshot, showing lots of artifacts

These artifacts may be a completely different bug, not just because I hacked away at emit_zb_offset().

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--
#5 lore raw

[Bug 27199] Division by Zero error with glDrawRangeElementsEXT()

In reply to [email protected]

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

Chris Rankin <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Chris Rankin <[email protected]> 2010-12-24 06:38:43 PST --- No longer relevant now that r300g is the default driver. And was probably fixed anyway.

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