st/nine: Fix setting of the shift modifier in nine_shader
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 23:38:10 +0000 (00:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Nov 2014 20:09:12 +0000 (20:09 +0000)
commitd52328fc398aae4c3582172516b0ad98f0677b58
tree132b2fe0ff94593e80078870df6a6508e94628e4
parent90fea6b3e0153c12d8d1a0f817c56a3efa0ce99c
st/nine: Fix setting of the shift modifier in nine_shader

It is an sint_4, but it was stored in a uint_8...
The code using it was acting as if it was signed.

Problem found thanks to Coverity

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Tested-by: David Heidelberg <david@ixit.cz>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_shader.c