[Mesa-dev] [PATCH 2/9] glsl: add u64->fp64 and i64->fp64 builtins.

Dave Airlie airlied at gmail.com
Fri Feb 2 05:06:55 UTC 2018


On 2 February 2018 at 03:40, Roland Scheidegger <sroland at vmware.com> wrote:
> I suppose this is a bit inefficient if the hw actually supports some
> double ops?
> I mean for uint->double you could just convert the low 8 bits and high
> 24 bits (or different split) separately to float, convert both to double
> and add them. (I think should work for int->double exactly the same
> despite the sign bit.)
> But in any case, for hw not supporting double ops at all this looks like
> the right approach.

I've sent a patch that did this instead, definitely smaller instructions count.

Consider this series dropped for now, Elie don't worry we'll get soft
fp64 in there yet :-)

Dave.


More information about the mesa-dev mailing list