st_glsl_to_tgsi: don't try and pass 32-bit values to get_deref_offsets
authorDave Airlie <airlied@redhat.com>
Mon, 12 Jun 2017 19:33:19 +0000 (05:33 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 12 Jun 2017 23:29:54 +0000 (09:29 +1000)
commit8ec4975cd83365c791a1852a6515ed5d4ade2daf
tree3eb9caa19d04cb29e018627c090e4dac57ddb9f0
parentca69b5e78c49be2474dab7be92161cd9f957c4e7
st_glsl_to_tgsi: don't try and pass 32-bit values to get_deref_offsets

Just use a temporary 16-bit index.

This fixes coverity issue, pointed to me by Ilia.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp