This patch fixes a Coverity defect. By checking if the value is negative before 
using it to index an array it makes the code a bit safer and cleaner but it
should not actually change the outcome of the functions.

CID: 1355598

Jakob Sinclair (1):
  radeonsi: check if value is negative

 src/gallium/drivers/radeonsi/si_state.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

-- 
2.8.0
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to