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:
authorMai Lavelle <mai.lavelle@gmail.com>2017-07-06 03:16:41 +0300
committerMai Lavelle <mai.lavelle@gmail.com>2017-07-06 12:25:46 +0300
commit9c3f1ad003fcee40ca8f6d8091461bb8cee3db33 (patch)
tree80dd526f0d49a231f2581eb2a9735b865929fae5 /intern/cycles/util/util_debug.h
parent95b345b2fe42573e0fad4c30adb865fd675316fc (diff)
Cycles: Add artificial memory limit debug option for OpenCL
Diffstat (limited to 'intern/cycles/util/util_debug.h')
-rw-r--r--intern/cycles/util/util_debug.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/util/util_debug.h b/intern/cycles/util/util_debug.h
index 4505d584490..450cd900a9f 100644
--- a/intern/cycles/util/util_debug.h
+++ b/intern/cycles/util/util_debug.h
@@ -115,6 +115,10 @@ public:
/* Use single program */
bool single_program;
+
+ /* TODO(mai): Currently this is only for OpenCL, but we should have it implemented for all devices. */
+ /* Artificial memory limit in bytes (0 if disabled). */
+ size_t mem_limit;
};
/* Get instance of debug flags registry. */