gallium/tgsi: use _mesa_roundevenf in micro_rnd
authorLars Hamre <chemecse@gmail.com>
Thu, 19 May 2016 21:34:00 +0000 (15:34 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 26 May 2016 13:59:15 +0000 (07:59 -0600)
commitc626a86586f1cfc7c6423e74cd63c1da212365c9
treeb78c2862017e239174df933c3fd250256bffa190
parentd519f59a9f44354e433bb71b56934a18e43446f3
gallium/tgsi: use _mesa_roundevenf in micro_rnd

Fixes the following piglit tests (for softpipe):

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

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

Signed-off-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.c