st/nine: Match REP implementation to LOOP
authorAxel Davy <axel.davy@ens.fr>
Fri, 2 Jan 2015 13:57:00 +0000 (14:57 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:21 +0000 (22:16 +0000)
commitdd055176cc3ef716c5ad10459a0d0073f2b8da71
treebef2547f8c6f4d43d0c915c7d4b5405d93cc04f9
parent6a8e5e48be0bad4606b2d5d7ba736a3d2a277c55
st/nine: Match REP implementation to LOOP

Previous implementation was behaving fine, but improve it by:
. Improved documentation
. Decreasing counter (comparing to 0 is likely to be faster than to constant)
. Move the counter update at the end for better performance for shaders that
break the loop earlier than when the count is done.

Reviewed-by: Tiziano Bacocco <tizbac2@gmail.com>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/nine_shader.c