Page MenuHome

Building options lead to broken BVH in Cycles
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 960M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 431.70

Blender Version
Broken: version: 2.81 (sub 14), e84685286274
Worked: ?

Short description of error
With my build options set to a minimum (WITH_CYCLES, WITH_BOOST, WITH_CYCLES_NATIVE_ONLY) it builds fine, but I end up with a non-functional Cycles.

Exact steps for others to reproduce the error
Viewport render preview leads to an assert on bvh_traversal.h::BVH_FUNCTION_NAME.

In that function I'm getting kernel_data.bvh.bvh_layout = BVH_LAYOUT_BVH4, but this case is ifdef'ed.

Note: If I go to debug menu, set debug to 256, and manually set BVH Layout to BVH2 things work well.

Details

Type
Bug

Event Timeline

Dalai Felinto (dfelinto) lowered the priority of this task from Needs Triage by Developer to Confirmed, Low.Wed, Oct 9, 10:25 PM
Dalai Felinto (dfelinto) created this task.

can't seem to repro with the standard developer profile options,could you share your cmakecache.txt ?

CMakeCache.txt:

I matched your build options as close as i could, still nothing.

  1. blender --factory-startup
  2. select cycles as the renderer
  3. z , rendered ,in the viewport

should do it right?

Steps are perfect. It goes without saying that It should be a debug build, and asserts should break. But I think even if they don't stop it would print in the windows console.

Sergey Sharybin (sergey) closed this task as Archived.Thu, Oct 10, 1:03 PM
Sergey Sharybin (sergey) claimed this task.

This means that get_bvh_layout_mask in device_cpu.cpp detected SSE2 support, but somehow __QBVH__ was not defined in the kernel (even though on 64bit platforms we always enabling __KERNEL_SSE2__).

However, this is a report about custom build, which we don't accept in the bug tracker. Bug tracker about issues reproducable with official builds. All the rest is to go via developers communications channels.

I asked for the ticket on chat, WITH_CYCLES_NATIVE_ONLY is not an option that gets a whole lot of exercise on windows, so if there's a problem with it i'd like to look into it and resolve the issue, that being said i'm unable repro