[Mesa-stable] cherry-pick request ffeb77c7 for 10.2 and 10.3 branches

Emil Velikov emil.l.velikov at gmail.com
Mon Sep 22 17:17:48 PDT 2014


On 20/09/14 01:35, Roland Scheidegger wrote:
> The following commit should be added to 10.2 and 10.3 branches, I forgot
> about it when I commited it, it fixes
> https://bugs.freedesktop.org/show_bug.cgi?id=83570 (which I forgot to
> mention in the commit message too...)
> 
> commit ffeb77c7b0552a8624e46e65d6347240ac5ae84d
> Author: rconde <rconde01 at outlook.com>
> Date:   Wed Sep 17 18:30:23 2014 +0200
> 
> gallivm,tgsi: fix idiv by zero crash
> 
> While the result of signed integer division by zero is undefined by glsl
> (and doesn't exist with d3d10), we must not crash, so need to make sure
> we don't get sigfpe much like udiv already does.
> Unlike udiv where we return 0xffffffff (as required by d3d10) there is
> no requirement right now to return anything specific so we use zero.
> 
Added the bugzilla entry, and pushed to both branches. The commit seems
to have some gracious trailing white space but I've kept the cherry-pick
as the original :)


Thanks
Emil

> 
> Roland
> _______________________________________________
> mesa-stable mailing list
> mesa-stable at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-stable
> 



More information about the mesa-stable mailing list