[Mesa-dev] [PATCH 04/17] glsl/ir: Add builtin function support for doubles (was: add double support)
Ilia Mirkin
imirkin at alum.mit.edu
Thu Feb 5 17:39:51 PST 2015
On Thu, Feb 5, 2015 at 1:37 PM, Matt Turner <mattst88 at gmail.com> wrote:
>> @@ -499,6 +525,12 @@ static const char *const operator_strs[] = {
>> "bitcast_u2f",
>> "bitcast_f2u",
>> "any",
>> + "d2f",
>> + "f2d",
>> + "d2i",
>> + "i2d",
>> + "d2u",
>> + "u2d",
>
> I see in the spec that you can convert double <-> bool, but I don't
> see operations for these.
The conversion is done via d2f + f2b (or b2f + f2d). Not sure what the
rationale was for not adding d2b/b2d, but it definitely does work as
implemented.
-ilia
More information about the mesa-dev
mailing list