clray
diff src/rt.cc @ 35:7d77ded5f890
stopped using a heap to flatten the kdtree. added explicit left/right indices
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 26 Aug 2010 20:24:07 +0100 |
parents | 4cf4919c3812 |
children | 980bc07be868 |
line diff
1.1 --- a/src/rt.cc Tue Aug 24 05:47:04 2010 +0100 1.2 +++ b/src/rt.cc Thu Aug 26 20:24:07 2010 +0100 1.3 @@ -102,7 +102,7 @@ 1.4 prog->set_arg_buffer(KARG_PRIM_RAYS, ARG_RD, xsz * ysz * sizeof *prim_rays, prim_rays); 1.5 prog->set_arg_buffer(KARG_XFORM, ARG_RD, 16 * sizeof(float)); 1.6 prog->set_arg_buffer(KARG_INVTRANS_XFORM, ARG_RD, 16 * sizeof(float)); 1.7 - prog->set_arg_buffer(KARG_KDTREE, ARG_RD, scn->get_kdtree_buffer_size(), kdbuf); 1.8 + prog->set_arg_buffer(KARG_KDTREE, ARG_RD, scn->get_num_kdnodes() * sizeof *kdbuf, kdbuf); 1.9 1.10 if(prog->get_num_args() < NUM_KERNEL_ARGS) { 1.11 return false;