summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_draw.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2014-02-04 19:53:53 +0100
committerRoland Scheidegger <[email protected]>2014-02-05 17:45:31 +0100
commit4a7da3bec5961bd82c520e1f5e363cbd2fa8fb77 (patch)
tree56072b856a0ecf3d5fdaf415c6fa46f98825e820 /src/gallium/auxiliary/util/u_draw.c
parent5c975966dcaaa4e781f3baba0fc1e3b7ad4a18a6 (diff)
gallivm: fix F2U opcode
Previously, we were really doing F2I. And also move it to generic section. (Note that for llvmpipe the code generated is definitely bad, due to lack of unsigned conversions with sse. I think though what llvm does (using scalar conversions to 64bit signed either with x87 fpu (32bit) or sse (64bit) including lots of domain changes is quite suboptimal, could do something like is_large = arg >= 2^31 half_arg = 0.5 * arg small_c = fptoint(arg) large_c = fptoint(half_arg) << 1 res = select(is_large, large_c, small_c) which should be much less instructions but that's something llvm should do itself.) This fixes piglit fs/vs-float-uint-conversion.shader_test (maybe more, needs GL 3.0 version override to run.) Reviewed-by: Jose Fonseca <[email protected]> Reviewed-by: Zack Rusin <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_draw.c')
0 files changed, 0 insertions, 0 deletions