Re: [Mesa-dev] [PATCH] tgsi: use truncf in micro_trunc

2016-06-06 Thread Roland Scheidegger
Reviewed-by: Roland Scheidegger I suppose we could use a wrapper like for rintf, using sse41 round instructions directly. However, just for softpipe it doesn't sound like it would be worth it, noone is really interested in peformance for softpipe (and noone compiles with sse41 flag anyway). Pushe

Re: [Mesa-dev] [PATCH] tgsi: use truncf in micro_trunc

2016-06-06 Thread Lars Hamre
Gentle ping, I would appreciate a Gallium developer's eyes on this. Regards, Lars Hamre On Thu, May 26, 2016 at 6:30 PM, Lars Hamre wrote: > Switches to using truncf in micro_trunc. > > Fixes the following piglit tests (for softpipe): > > /spec/glsl-1.30/execution/built-in-functions/... > fs-tru

[Mesa-dev] [PATCH] tgsi: use truncf in micro_trunc

2016-05-26 Thread Lars Hamre
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-function