vk/device: Make BATCH_SIZE a global #define
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Jul 2015 18:34:09 +0000 (11:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 30 Jul 2015 18:34:09 +0000 (11:34 -0700)
src/vulkan/anv_device.c
src/vulkan/anv_private.h

index ee7682a5d9afbc96376bd0cdf10ce066d714d373..a12076f790d8fe0307ac584a148028b301ce9177 100644 (file)
@@ -535,8 +535,6 @@ anv_device_init_border_colors(struct anv_device *device)
    memcpy(device->border_colors.map, border_colors, sizeof(border_colors));
 }
 
-static const uint32_t BATCH_SIZE = 8192;
-
 VkResult anv_CreateDevice(
     VkPhysicalDevice                            physicalDevice,
     const VkDeviceCreateInfo*                   pCreateInfo,
@@ -568,7 +566,7 @@ VkResult anv_CreateDevice(
    if (device->context_id == -1)
       goto fail_fd;
 
-   anv_bo_pool_init(&device->batch_bo_pool, device, BATCH_SIZE);
+   anv_bo_pool_init(&device->batch_bo_pool, device, ANV_CMD_BUFFER_BATCH_SIZE);
 
    anv_block_pool_init(&device->dynamic_state_block_pool, device, 2048);
 
index f3f50002568934939e9118937695b3397bb3f17b..0437677de0aeb17bba0ba29e82db2cef35a40802 100644 (file)
@@ -690,6 +690,8 @@ struct anv_cmd_state {
    struct anv_descriptor_set_binding            descriptors[MAX_SETS];
 };
 
+#define ANV_CMD_BUFFER_BATCH_SIZE 8192
+
 struct anv_cmd_buffer {
    struct anv_device *                          device;