On 13 January 2016 at 03:41, Ilia Mirkin <[email protected]> wrote: > On Tue, Jan 12, 2016 at 12:33 PM, Ian Romanick <[email protected]> wrote: >> On 01/12/2016 07:29 AM, Ilia Mirkin wrote: >>> IIRC this should come out as b2i + i2d. You should be able to test this >>> with llvmpipe/softpipe, which support fp64. >> >> Either that or b2f + f2d. I remember there being discussion about this >> topic when Dave first sent out the fp64 patches. I thought we decided >> against a b2d opcode. > > Yeah, I didn't actually check. I hope it's b2i + i2d though since that > could be done in one op on NVIDIA :) Oh, and to pre-empt the question, > the reason why there's a d2b is that doubles can represent numbers > smaller than float, so d2f might come out as 0 even though the double > != 0. However no such problem exists in the reverse direction.
It's b2f + f2d from looking at ast_function.cpp. Dave. _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
