Cycles/Optix: Add CYCLES_OPTIX_TEST override
authorRay Molenkamp <github@lazydodo.com>
Thu, 26 Mar 2020 17:30:17 +0000 (11:30 -0600)
committerRay Molenkamp <github@lazydodo.com>
Thu, 26 Mar 2020 17:30:17 +0000 (11:30 -0600)
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.

intern/cycles/device/device_optix.cpp

index c23732839b6f63dcf49a2736a0e65730c7a953a5..42d7b00314c0d87b39ed32c179c5a49a4ca212fc 100644 (file)
@@ -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;