st/nine: Fix rounding issue with vs1.1 a0 reg
authorAxel Davy <axel.davy@ens.fr>
Wed, 11 Nov 2015 09:15:19 +0000 (10:15 +0100)
committerAxel Davy <axel.davy@ens.fr>
Thu, 4 Feb 2016 21:12:17 +0000 (22:12 +0100)
commitaa4454ae85770c61adf8c0c0ed323a18e56bc126
tree43c089e749ce042e3c7afc6c1f58168c9f9307e0
parentdbb03f6b5be628e65e09cc822d71f9e6b962a070
st/nine: Fix rounding issue with vs1.1 a0 reg

vs1.1 rounds a0 to lowest integer, while
other versions do round to closest.

To use the same path as the other versions (with ARR),
we were substracting 0.5 for vs1.1 to get round to lowest.

This gives wrong result if a0 is set to 0:
round(0 - 0.5) = -1

Instead just use ARL for vs1.1

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
src/gallium/state_trackers/nine/nine_shader.c