@@ -123,7 +123,7 @@ namespace RadeonRays
123
123
if (device->GetPlatform () == Calc::Platform::kOpenCL )
124
124
{
125
125
m_gpuData->bvh_prog .executable = m_device->CompileExecutable (g_intersect_bvh2_lds_opencl, std::strlen (g_intersect_bvh2_lds_opencl), buildopts.c_str ());
126
- m_gpuData->qbvh_prog .executable = m_device->CompileExecutable (g_intersect_bvh2_lds_fp16_opencl, std::strlen (g_intersect_bvh2_lds_opencl ), buildopts.c_str ());
126
+ m_gpuData->qbvh_prog .executable = m_device->CompileExecutable (g_intersect_bvh2_lds_fp16_opencl, std::strlen (g_intersect_bvh2_lds_fp16_opencl ), buildopts.c_str ());
127
127
}
128
128
#endif
129
129
#if USE_VULKAN
@@ -161,7 +161,7 @@ namespace RadeonRays
161
161
auto nbins = world.options_ .GetOption (" bvh.sah.num_bins" );
162
162
auto tcost = world.options_ .GetOption (" bvh.sah.traversal_cost" );
163
163
164
- bool use_qbvh = true , use_sah = false ;
164
+ bool use_qbvh = false , use_sah = false ;
165
165
int num_bins = (nbins ? static_cast <int >(nbins->AsFloat ()) : 64 );
166
166
float traversal_cost = (tcost ? tcost->AsFloat () : 10 .0f );
167
167
@@ -207,7 +207,7 @@ namespace RadeonRays
207
207
208
208
// Copy BVH data
209
209
for (std::size_t i = 0 ; i < bvh.m_nodecount ; ++i)
210
- bvhdata[i++ ] = bvh.m_nodes [i];
210
+ bvhdata[i] = bvh.m_nodes [i];
211
211
212
212
// Unmap gpu data
213
213
m_device->UnmapBuffer (m_gpuData->bvh , 0 , bvhdata, &e);
0 commit comments