vk: Rename dyn_state_pool to dynamic_state_pool
authorKristian Høgsberg <kristian.h.kristensen@intel.com>
Wed, 13 May 2015 22:34:34 +0000 (15:34 -0700)
committerKristian Høgsberg <kristian.h.kristensen@intel.com>
Fri, 15 May 2015 22:22:29 +0000 (15:22 -0700)
Given that we already tolerate surface_state_pool and the even longer
instruction_state_pool, there's no reason to arbitrarily abbreviate
dynamic.

src/vulkan/device.c
src/vulkan/private.h

index e1aac64ffb028c6a6786f279f1f494ebe8efceb8..82ac248cb87480145665324c3edd586dc310f86b 100644 (file)
@@ -305,10 +305,10 @@ VkResult VKAPI vkCreateDevice(
    if (device->context_id == -1)
       goto fail_fd;
 
-   anv_block_pool_init(&device->dyn_state_block_pool, device, 2048);
+   anv_block_pool_init(&device->dynamic_state_block_pool, device, 2048);
 
-   anv_state_pool_init(&device->dyn_state_pool,
-                       &device->dyn_state_block_pool);
+   anv_state_pool_init(&device->dynamic_state_pool,
+                       &device->dynamic_state_block_pool);
 
    anv_block_pool_init(&device->instruction_block_pool, device, 2048);
    anv_block_pool_init(&device->surface_state_block_pool, device, 2048);
@@ -344,7 +344,7 @@ VkResult VKAPI vkDestroyDevice(
 
    anv_compiler_destroy(device->compiler);
 
-   anv_block_pool_finish(&device->dyn_state_block_pool);
+   anv_block_pool_finish(&device->dynamic_state_block_pool);
    anv_block_pool_finish(&device->instruction_block_pool);
    anv_block_pool_finish(&device->surface_state_block_pool);
 
@@ -628,8 +628,8 @@ VkResult VKAPI vkDeviceWaitIdle(
    int64_t timeout;
    int ret;
 
-   state = anv_state_pool_alloc(&device->dyn_state_pool, 32, 32);
-   bo = &device->dyn_state_pool.block_pool->bo;
+   state = anv_state_pool_alloc(&device->dynamic_state_pool, 32, 32);
+   bo = &device->dynamic_state_pool.block_pool->bo;
    batch.next = state.map;
    anv_batch_emit(&batch, GEN8_MI_BATCH_BUFFER_END);
    anv_batch_emit(&batch, GEN8_MI_NOOP);
@@ -672,12 +672,12 @@ VkResult VKAPI vkDeviceWaitIdle(
       }
    }
 
-   anv_state_pool_free(&device->dyn_state_pool, state);
+   anv_state_pool_free(&device->dynamic_state_pool, state);
 
    return VK_SUCCESS;
 
  fail:
-   anv_state_pool_free(&device->dyn_state_pool, state);
+   anv_state_pool_free(&device->dynamic_state_pool, state);
 
    return result;
 }
@@ -1651,11 +1651,11 @@ VkResult VKAPI vkCreateDynamicViewportState(
       return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY);
 
    unsigned count = pCreateInfo->viewportAndScissorCount;
-   state->sf_clip_vp = anv_state_pool_alloc(&device->dyn_state_pool,
+   state->sf_clip_vp = anv_state_pool_alloc(&device->dynamic_state_pool,
                                             count * 64, 64);
-   state->cc_vp = anv_state_pool_alloc(&device->dyn_state_pool,
+   state->cc_vp = anv_state_pool_alloc(&device->dynamic_state_pool,
                                        count * 8, 32);
-   state->scissor = anv_state_pool_alloc(&device->dyn_state_pool,
+   state->scissor = anv_state_pool_alloc(&device->dynamic_state_pool,
                                          count * 32, 32);
 
    for (uint32_t i = 0; i < pCreateInfo->viewportAndScissorCount; i++) {
@@ -1827,7 +1827,7 @@ VkResult VKAPI vkCreateCommandBuffer(
    anv_state_stream_init(&cmd_buffer->surface_state_stream,
                          &device->surface_state_block_pool);
    anv_state_stream_init(&cmd_buffer->dynamic_state_stream,
-                         &device->dyn_state_block_pool);
+                         &device->dynamic_state_block_pool);
 
    cmd_buffer->dirty = 0;
    cmd_buffer->vb_dirty = 0;
@@ -1867,7 +1867,7 @@ VkResult VKAPI vkBeginCommandBuffer(
                   .SurfaceStateMemoryObjectControlState = 0, /* FIXME: MOCS */
                   .SurfaceStateBaseAddressModifyEnable = true,
 
-                  .DynamicStateBaseAddress = { &device->dyn_state_block_pool.bo, 0 },
+                  .DynamicStateBaseAddress = { &device->dynamic_state_block_pool.bo, 0 },
                   .DynamicStateBaseAddressModifyEnable = true,
                   .DynamicStateBufferSize = 0xfffff,
                   .DynamicStateBufferSizeModifyEnable = true,
index 62f77cd96d9ae91d02d227fdf1b132d64555d839..3120b8486e1c323fe31cd4df16c85d7b867493a1 100644 (file)
@@ -285,8 +285,8 @@ struct anv_device {
     bool                                        no_hw;
     bool                                        dump_aub;
 
-    struct anv_block_pool                       dyn_state_block_pool;
-    struct anv_state_pool                       dyn_state_pool;
+    struct anv_block_pool                       dynamic_state_block_pool;
+    struct anv_state_pool                       dynamic_state_pool;
 
     struct anv_block_pool                       instruction_block_pool;
     struct anv_block_pool                       surface_state_block_pool;