[Mesa-dev] [Bug 83570] Glyphy demo throws unhandled Integer division by zero exception
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Sep 8 05:43:26 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=83570
--- Comment #7 from Roland Scheidegger <sroland at vmware.com> ---
(In reply to comment #6)
> (In reply to comment #5)
> > Actually, I think it would be a good idea if you could return 0xffffffff
> > instead of 0. This is typically what GPUs will do, since the d3d10 docs
> > claim this is required, both for div and mod -
> > http://msdn.microsoft.com/en-us/library/windows/desktop/hh447244%28v=vs.
> > 85%29.aspx
>
> Though actually that might not make sense for signed div (which d3d10
> doesn't have).
And actually I didn't look closely enough, the unsigned versions already handle
this (in udiv_emit_cpu() etc for gallivm), so it's just idiv_emit_cpu() which
needs fixing. And zero is probably fine, I can't really think of a more useful
value (maybe -MAX_INT or something would work too if anyone cares).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140908/cbc65c66/attachment-0001.html>
More information about the mesa-dev
mailing list