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

--- Comment #7 from Roland Scheidegger <srol...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to