Page MenuHome

Fix 'warning: double precision constant requires cl_khr_fp64, casting to single precision' in Cycles
AbandonedPublic

Authored by Edward O'Callaghan (funfunctor) on Sep 2 2016, 2:13 PM.

Diff Detail

Event Timeline

Edward O'Callaghan (funfunctor) retitled this revision from to Fix 'warning: double precision constant requires cl_khr_fp64, casting to single precision' in Cycles.
Edward O'Callaghan (funfunctor) updated this object.
Brecht Van Lommel (brecht) requested changes to this revision.EditedSep 2 2016, 9:02 PM

We don't intentionally use doubles in the kernel. Rather than enabling this extension, we probably just need to change a few constants or functions to use the f postfix.

This revision now requires changes to proceed.Sep 2 2016, 9:02 PM

We don't intentionally use doubles in the kernel. Rather than enabling this extension, we probably just need to change a few constants or functions to use the f postfix.

Can I leave you with that? My concern is the opensource radeon drivers so (mesa/clover, llvm & kernel).

D2171 is also coupled with that work.

Ok, I've fixed a couple of those cases in rBe76e8fcdcc53.

If there's more please provide a build log with the warnings.

Ok, I've fixed a couple of those cases in rBe76e8fcdcc53.

Thanks!

If there's more please provide a build log with the warnings.

Yea no worries.