Re: [Mesa-dev] [PATCH 1/1] radeonsi: check if value is negative

2016-04-27 Thread Nicolai Hähnle
On 23.04.2016 07:05, Jakob Sinclair wrote: Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code more clean and it doesn't change the outcome of the function. Thanks. I don't think that case should

[Mesa-dev] [PATCH 1/1] radeonsi: check if value is negative

2016-04-23 Thread Jakob Sinclair
Fixes a Coverity defect by adding checks to see if a value is negative before using it to index an array. By checking the value first it makes the code more clean and it doesn't change the outcome of the function. CID: 1355598 Signed-off-by: Jakob Sinclair --- src/gallium/drivers/radeonsi/si_st