From cdb0b3b1dcd4e9962426422868b2f40535670a5c Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 8 Oct 2017 04:32:25 +0200 Subject: Code refactor: use DeviceInfo to enable QBVH and decoupled volume shading. --- intern/cycles/device/device_cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intern/cycles/device/device_cpu.cpp') diff --git a/intern/cycles/device/device_cpu.cpp b/intern/cycles/device/device_cpu.cpp index ac6d3246d38..a17caabc850 100644 --- a/intern/cycles/device/device_cpu.cpp +++ b/intern/cycles/device/device_cpu.cpp @@ -1024,6 +1024,8 @@ void device_cpu_info(vector& devices) info.id = "CPU"; info.num = 0; info.advanced_shading = true; + info.has_qbvh = system_cpu_support_sse2(); + info.has_volume_decoupled = true; devices.insert(devices.begin(), info); } -- cgit v1.2.3