~ubuntu-branches/ubuntu/trusty/blender/trusty-proposed

« back to all changes in this revision

Viewing changes to intern/cycles/kernel/svm/svm_checker.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2013-08-14 10:43:49 UTC
  • mfrom: (14.2.19 sid)
  • Revision ID: package-import@ubuntu.com-20130814104349-t1d5mtwkphp12dyj
Tags: 2.68a-3
* Upload to unstable
* debian/: python3.3 Depends simplified
  - debian/control: python3.3 Depends dropped
    for blender-data package
  - 0001-blender_thumbnailer.patch refreshed
* debian/control: libavcodec b-dep versioning dropped

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
        p.y = (p.y + 0.00001f)*0.9999f;
30
30
        p.z = (p.z + 0.00001f)*0.9999f;
31
31
 
32
 
        int xi = (int)fabsf(floorf(p.x));
33
 
        int yi = (int)fabsf(floorf(p.y));
34
 
        int zi = (int)fabsf(floorf(p.z));
 
32
        int xi = float_to_int(fabsf(floorf(p.x)));
 
33
        int yi = float_to_int(fabsf(floorf(p.y)));
 
34
        int zi = float_to_int(fabsf(floorf(p.z)));
35
35
 
36
36
        return ((xi % 2 == yi % 2) == (zi % 2))? 1.0f: 0.0f;
37
37
}
38
38
 
39
 
__device void svm_node_tex_checker(KernelGlobals *kg, ShaderData *sd, float *stack, uint4 node, int *offset)
 
39
__device void svm_node_tex_checker(KernelGlobals *kg, ShaderData *sd, float *stack, uint4 node)
40
40
{       
41
41
        uint co_offset, color1_offset, color2_offset, scale_offset;
42
42
        uint color_offset, fac_offset;