Re: [Mesa-dev] [PATCH] avoid crashing in mod by 0 with llvmpipe

2016-01-15 Thread Roland Scheidegger
Ok, pushed. Roland Am 15.01.2016 um 21:01 schrieb Jeff Muizelaar: > Do you mind fixing up the language to match what you're looking for > and committing it? > > Thanks, > > -Jeff > > On Fri, Jan 15, 2016 at 3:00 PM, Roland Scheidegger > wrote: >> Am 15.01.2016 um 20:13 schrieb Jeff Muizelaar

Re: [Mesa-dev] [PATCH] avoid crashing in mod by 0 with llvmpipe

2016-01-15 Thread Jeff Muizelaar
Do you mind fixing up the language to match what you're looking for and committing it? Thanks, -Jeff On Fri, Jan 15, 2016 at 3:00 PM, Roland Scheidegger wrote: > Am 15.01.2016 um 20:13 schrieb Jeff Muizelaar: >> This adds code that is basically the same as the code in smod, div and idiv. > That

Re: [Mesa-dev] [PATCH] avoid crashing in mod by 0 with llvmpipe

2016-01-15 Thread Roland Scheidegger
Am 15.01.2016 um 20:13 schrieb Jeff Muizelaar: > This adds code that is basically the same as the code in smod, div and idiv. That would be umod, not smod, above (and udiv). > However, unlike idiv we return -1. > > diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c > b/src/gallium/au

[Mesa-dev] [PATCH] avoid crashing in mod by 0 with llvmpipe

2016-01-15 Thread Jeff Muizelaar
This adds code that is basically the same as the code in smod, div and idiv. However, unlike idiv we return -1. diff --git a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c index 0ad78b0..d17ef31 100644 --- a/src/gallium/auxiliary/gallivm/lp_