nir: coverity unitialized pointer read
authorRob Clark <robclark@freedesktop.org>
Wed, 18 May 2016 14:38:40 +0000 (10:38 -0400)
committerRob Clark <robclark@freedesktop.org>
Fri, 20 May 2016 15:13:50 +0000 (11:13 -0400)
commitfcd6b3f42be904d162b78fe75ba14c6415cdb815
tree27591bf2ad508f19dfc4c5188ff58248e08240f3
parent53c48feae086bbf5b17798fc1cd98ab14a17c7a8
nir: coverity unitialized pointer read

Not sure how coverity arrives at the conclusion that we can read comp[j]
unitialized (around line 204), other than not being aware that ncomp is
greater than 1 so it won't underflow in the 'if (tex->is_array)' case.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir_lower_tex.c