tgsi: use truncf in micro_trunc
authorLars Hamre <chemecse@gmail.com>
Thu, 26 May 2016 22:30:24 +0000 (18:30 -0400)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 6 Jun 2016 13:56:28 +0000 (15:56 +0200)
commit4163c71010479524d8c9010a78454c584ddd8629
treeb6524207569b926fdc188d05c1d666aeb5528cba
parent2b648ec17c2934802dd56452d11d78ec2d525a06
tgsi: use truncf in micro_trunc

Switches to using truncf in micro_trunc.

Fixes the following piglit tests (for softpipe):

/spec/glsl-1.30/execution/built-in-functions/...
fs-trunc-float
fs-trunc-vec2
fs-trunc-vec3
fs-trunc-vec4
vs-trunc-float
vs-trunc-vec2
vs-trunc-vec3
vs-trunc-vec4

/spec/glsl-1.50/execution/built-in-functions/...
gs-trunc-float
gs-trunc-vec2
gs-trunc-vec3
gs-trunc-vec4

Signed-off-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c