Cycles: Enable HIP-RT logging when debug log is on

These logs do not appear to be that noisy and do help nailing down
issues in HIP-RT.

Pull Request: https://projects.blender.org/blender/blender/pulls/135530
This commit is contained in:
Sergey Sharybin
2025-03-06 11:57:34 +01:00
committed by Sergey Sharybin
parent 21bd7ec180
commit 3f6fca4297

View File

@@ -100,7 +100,12 @@ HIPRTDevice::HIPRTDevice(const DeviceInfo &info,
return;
}
hiprtSetLogLevel(hiprtLogLevelNone);
if (VLOG_DEBUG_IS_ON) {
hiprtSetLogLevel(hiprtLogLevelInfo | hiprtLogLevelWarn | hiprtLogLevelError);
}
else {
hiprtSetLogLevel(hiprtLogLevelNone);
}
}
HIPRTDevice::~HIPRTDevice()