dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@freedesktop.org
To: dri-devel@lists.sourceforge.net
Subject: [Bug 27199] Division by Zero error with glDrawRangeElementsEXT()
Date: Fri, 19 Mar 2010 08:25:16 -0700 (PDT)	[thread overview]
Message-ID: <20100319152516.C5158130118@annarchy.freedesktop.org> (raw)
In-Reply-To: <bug-27199-502@http.bugs.freedesktop.org/>

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





--- Comment #2 from Chris Rankin <rankincj@googlemail.com>  2010-03-19 08:25:16 PST ---
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.


-- 
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
--

  parent reply	other threads:[~2010-03-19 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-19 14:41 [Bug 27199] New: Division by Zero error with glDrawRangeElementsEXT() bugzilla-daemon
2010-03-19 14:41 ` [Bug 27199] " bugzilla-daemon
2010-03-19 14:47 ` bugzilla-daemon
2010-03-19 15:25 ` bugzilla-daemon [this message]
2010-03-19 15:48 ` bugzilla-daemon
2010-12-24 14:38 ` bugzilla-daemon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100319152516.C5158130118@annarchy.freedesktop.org \
    --to=bugzilla-daemon@freedesktop.org \
    --cc=dri-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).