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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-07-03 12:05:28 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-07-03 12:05:28 +0300
commit659e5234afcd09db6b9000990d66d3e59880e29a (patch)
treee909ff9fe5de93f1ca48d76616f7d57a4dd6b6ff
parentb9f89b164785f28b023af071d696c298deba4f63 (diff)
Cycles: Use explicit indices for split kernel queues
-rw-r--r--intern/cycles/kernel/kernel_types.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/intern/cycles/kernel/kernel_types.h b/intern/cycles/kernel/kernel_types.h
index 2a70bfcb8f0..3f57d009c50 100644
--- a/intern/cycles/kernel/kernel_types.h
+++ b/intern/cycles/kernel/kernel_types.h
@@ -1015,16 +1015,19 @@ typedef ccl_addr_space struct DebugData {
/* Queue names */
enum QueueNumber {
- QUEUE_ACTIVE_AND_REGENERATED_RAYS, /* All active rays and regenerated rays are enqueued here */
- QUEUE_HITBG_BUFF_UPDATE_TOREGEN_RAYS, /* All
- * 1.Background-hit rays,
- * 2.Rays that has exited path-iteration but needs to update output buffer
- * 3.Rays to be regenerated
- * are enqueued here */
- QUEUE_SHADOW_RAY_CAST_AO_RAYS, /* All rays for which a shadow ray should be cast to determine radiance
- contribution for AO are enqueued here */
- QUEUE_SHADOW_RAY_CAST_DL_RAYS, /* All rays for which a shadow ray should be cast to determine radiance
- contributuin for direct lighting are enqueued here */
+ QUEUE_ACTIVE_AND_REGENERATED_RAYS = 0, /* All active rays and regenerated rays are enqueued here. */
+ QUEUE_HITBG_BUFF_UPDATE_TOREGEN_RAYS = 1, /* All
+ * 1. Background-hit rays,
+ * 2. Rays that has exited path-iteration but needs to update output buffer
+ * 3. Rays to be regenerated
+ * are enqueued here.
+ */
+ QUEUE_SHADOW_RAY_CAST_AO_RAYS = 2, /* All rays for which a shadow ray should be cast to determine radiance
+ * contribution for AO are enqueued here.
+ */
+ QUEUE_SHADOW_RAY_CAST_DL_RAYS = 3, /* All rays for which a shadow ray should be cast to determine radiance
+ * contributuin for direct lighting are enqueued here.
+ */
};
/* We use RAY_STATE_MASK to get ray_state (enums 0 to 5) */