vc4: Add a little helper for clamping to [0,1].
authorEric Anholt <eric@anholt.net>
Sun, 11 Jan 2015 02:22:22 +0000 (15:22 +1300)
committerEric Anholt <eric@anholt.net>
Sun, 11 Jan 2015 04:17:20 +0000 (17:17 +1300)
commit1519a1928a6009904359d2de188c65632385f401
treec440a92efa4babefe9ce2c71c9c98c6c05d0849a
parent1a328120d334ae09fa6a1ce8b599174f730a9753
vc4: Add a little helper for clamping to [0,1].
src/gallium/drivers/vc4/vc4_program.c