st/glsl_to_tgsi: prevent infinite loop
authorEric Engestrom <eric@engestrom.ch>
Tue, 31 May 2016 01:20:12 +0000 (02:20 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 31 May 2016 09:46:30 +0000 (11:46 +0200)
commit35fd5282ea39a15fab4f7b9639ffe0853a19b415
treead62610b70c1f75375368f2cf199444b8e836281
parentf87352d76966b6e4b0ab5fa9129ccd1ade0c2e7a
st/glsl_to_tgsi: prevent infinite loop

`unsigned j` would never fail `j >= 0`, leading to an infinite loop as
`j--` wraps around.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp