[Bf-blender-cvs] [58ea0d93f19] master: Cycles/Optix: Add CYCLES_OPTIX_TEST override

Ray Molenkamp noreply at git.blender.org
Thu Mar 26 18:42:02 CET 2020


Commit: 58ea0d93f193adf84162d736c3c69500584e1aef
Author: Ray Molenkamp
Date:   Thu Mar 26 11:30:17 2020 -0600
Branches: master
https://developer.blender.org/rB58ea0d93f193adf84162d736c3c69500584e1aef

Cycles/Optix: Add CYCLES_OPTIX_TEST override

This works similarly to the CYCLES_OPENCL_TEST
environment variable to allow testing on unsupported
hardware.

Note: like the OPENCL test override, this is
for *testing* only and bug reports on unsupported
hardware will *not* be accepted at this point in
time.

===================================================================

M	intern/cycles/device/device_optix.cpp

===================================================================

diff --git a/intern/cycles/device/device_optix.cpp b/intern/cycles/device/device_optix.cpp
index c23732839b6..42d7b00314c 100644
--- a/intern/cycles/device/device_optix.cpp
+++ b/intern/cycles/device/device_optix.cpp
@@ -1558,7 +1558,7 @@ void device_optix_info(vector<DeviceInfo> &devices)
     }
 
     // Only add devices with RTX support
-    if (rtcore_version == 0)
+    if (rtcore_version == 0 && !getenv("CYCLES_OPTIX_TEST"))
       it = cuda_devices.erase(it);
     else
       ++it;



More information about the Bf-blender-cvs mailing list