mesa/st/glsl_to_tgsi: fixup copy-paste mistake
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Sun, 12 Aug 2018 13:24:38 +0000 (15:24 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 13 Aug 2018 16:15:36 +0000 (18:15 +0200)
commitae5770171ccfb085a57c3ef9251c16484c47b6af
treed41b4c6b13d5ab40d1cb46f7e0a15df59de76998
parentc91a5f70fb94d0d0e94441d82ea570b54a6f0ab9
mesa/st/glsl_to_tgsi: fixup copy-paste mistake

This is clearly a copy-paste error; if we validate the reladdr2-pointer,
we don't want to traverse to the reladdr-pointer. Especially since the
check above shows that reladdr could be NULL here.

Noticed by Coverity.

CID: 14383891438390
Fixes: 568bda2f2d3 ("mesa/st/glsl_to_tgsi: Split arrays whose elements are only accessed directly")
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gert Wollny <gw.fossdev@gmail.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp