From 80ad578c4e05f0f67efdb6f96a6b97b5c409fca5 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 27 Jul 2015 12:40:43 -0700 Subject: [PATCH] vk/private.h: Re-arrange and better comment anv_cmd_buffer --- src/vulkan/anv_private.h | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/vulkan/anv_private.h b/src/vulkan/anv_private.h index 89c0bc29fab..e72b8a3ae36 100644 --- a/src/vulkan/anv_private.h +++ b/src/vulkan/anv_private.h @@ -696,6 +696,16 @@ void anv_cmd_state_fini(struct anv_cmd_state *state); struct anv_cmd_buffer { struct anv_device * device; + /* Fields required for the actual chain of anv_batch_bo's */ + struct anv_batch batch; + struct anv_batch_bo * last_batch_bo; + struct anv_batch_bo * surface_batch_bo; + uint32_t surface_next; + struct anv_reloc_list surface_relocs; + + /* Information needed for execbuf that's generated when the command + * buffer is ended. + */ struct drm_i915_gem_execbuffer2 execbuf; struct drm_i915_gem_exec_object2 * exec2_objects; uint32_t exec2_bo_count; @@ -704,11 +714,7 @@ struct anv_cmd_buffer { bool need_reloc; uint32_t serial; - struct anv_batch batch; - struct anv_batch_bo * last_batch_bo; - struct anv_batch_bo * surface_batch_bo; - uint32_t surface_next; - struct anv_reloc_list surface_relocs; + /* Stream objects for storing temporary data */ struct anv_state_stream surface_state_stream; struct anv_state_stream dynamic_state_stream; -- 2.30.2