diff options
author | Mai Lavelle <mai.lavelle@gmail.com> | 2016-12-14 04:45:09 +0300 |
---|---|---|
committer | Mai Lavelle <mai.lavelle@gmail.com> | 2017-03-08 09:24:55 +0300 |
commit | b78e543af9f6a967e239a88422c8e8a697162463 (patch) | |
tree | e17f1f9f795cb1476788c8b59674f4cb54aae4f5 /intern/cycles/device/device_split_kernel.cpp | |
parent | 817873cc83034c460f1be6bf410c95ff009f3ae2 (diff) |
Cycles: Add names to buffer allocations
This is to help debug and track memory usage for generic buffers. We
have similar for textures already since those require a name, but for
buffers the name is only for debugging proposes.
Diffstat (limited to 'intern/cycles/device/device_split_kernel.cpp')
-rw-r--r-- | intern/cycles/device/device_split_kernel.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/intern/cycles/device/device_split_kernel.cpp b/intern/cycles/device/device_split_kernel.cpp index cf43e499d0f..c50afe85da5 100644 --- a/intern/cycles/device/device_split_kernel.cpp +++ b/intern/cycles/device/device_split_kernel.cpp @@ -131,21 +131,21 @@ bool DeviceSplitKernel::path_trace(DeviceTask *task, /* Allocate work_pool_wgs memory. */ work_pool_wgs.resize(max_work_groups * sizeof(unsigned int)); - device->mem_alloc(work_pool_wgs, MEM_READ_WRITE); + device->mem_alloc("work_pool_wgs", work_pool_wgs, MEM_READ_WRITE); queue_index.resize(NUM_QUEUES * sizeof(int)); - device->mem_alloc(queue_index, MEM_READ_WRITE); + device->mem_alloc("queue_index", queue_index, MEM_READ_WRITE); use_queues_flag.resize(sizeof(char)); - device->mem_alloc(use_queues_flag, MEM_READ_WRITE); + device->mem_alloc("use_queues_flag", use_queues_flag, MEM_READ_WRITE); ray_state.resize(num_global_elements); - device->mem_alloc(ray_state, MEM_READ_WRITE); + device->mem_alloc("ray_state", ray_state, MEM_READ_WRITE); split_data.resize(split_data_buffer_size(num_global_elements, current_max_closure, per_thread_output_buffer_size)); - device->mem_alloc(split_data, MEM_READ_WRITE); + device->mem_alloc("split_data", split_data, MEM_READ_WRITE); } #define ENQUEUE_SPLIT_KERNEL(name, global_size, local_size) \ |