+checkpoint: fix .ispc kernels for compilation with llc->ptx

This commit is contained in:
Evghenii
2014-01-06 08:52:41 +01:00
parent 6c93793750
commit 6500a98747
3 changed files with 26 additions and 2 deletions

View File

@@ -81,6 +81,9 @@ static inline void vnormalize(vec &v) {
}
#if 1
inline
#endif
static void
ray_plane_intersect(Isect &isect, Ray &ray, const uniform Plane &plane) {
float d = -dot(plane.p, plane.n);
@@ -123,6 +126,9 @@ ray_sphere_intersect(Isect &isect, Ray &ray, const uniform Sphere &sphere) {
}
#if 1
inline
#endif
static void
orthoBasis(vec basis[3], vec n) {
basis[2] = n;
@@ -146,6 +152,9 @@ orthoBasis(vec basis[3], vec n) {
}
#if 1
inline
#endif
static float
ambient_occlusion(Isect &isect, const uniform Plane &plane, const uniform Sphere spheres[3],
RNGState &rngstate) {