| Summary: | Division by Zero error with glDrawRangeElementsEXT() | ||
|---|---|---|---|
| Product: | Mesa | Reporter: | Chris Rankin <rankincj> |
| Component: | Drivers/DRI/r300 | Assignee: | Default DRI bug account <dri-devel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | medium | ||
| Version: | git | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
| Attachments: |
Full WoW output, including backtrace.
WoW screenshot, showing lots of artifacts |
||
|
Description
Chris Rankin
2010-03-19 07:41:10 UTC
This bus is also present in F12's Mesa 7.7-4 packages. This crash stopped happening after I added the following hack:
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -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.
Created attachment 34245 [details]
WoW screenshot, showing lots of artifacts
These artifacts may be a completely different bug, not just because I hacked away at emit_zb_offset().
No longer relevant now that r300g is the default driver. And was probably fixed anyway. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.