Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Mours <pmours@nvidia.com>2019-10-21 16:53:29 +0300
committerPatrick Mours <pmours@nvidia.com>2019-10-21 16:53:29 +0300
commit200267eb968d585901d13fb47446e5b45898df11 (patch)
tree815f35b819de8506887781846b643f3f9d48e87f /intern/cycles
parent42eef8f81a6aea27094985347ab802dc6bb91a61 (diff)
parentd0cba5caf464e18e8522c3f890cb1053631374c1 (diff)
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/device/device_optix.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/intern/cycles/device/device_optix.cpp b/intern/cycles/device/device_optix.cpp
index e230662e698..370e3cf4085 100644
--- a/intern/cycles/device/device_optix.cpp
+++ b/intern/cycles/device/device_optix.cpp
@@ -1196,14 +1196,16 @@ class OptiXDevice : public Device {
void mem_alloc(device_memory &mem) override
{
if (mem.type == MEM_PIXELS && !background) {
- assert(!"mem_alloc not supported for pixels.");
+ // Always fall back to no interop for now
+ // TODO(pmours): Support OpenGL interop when moving CUDA memory management to common code
+ background = true;
}
else if (mem.type == MEM_TEXTURE) {
assert(!"mem_alloc not supported for textures.");
+ return;
}
- else {
- generic_alloc(mem);
- }
+
+ generic_alloc(mem);
}
CUDAMem *generic_alloc(device_memory &mem, size_t pitch_padding = 0)