vk/device: Make BATCH_SIZE a global #define

This commit is contained in:
Jason Ekstrand
2015-07-30 11:34:09 -07:00
parent ace093031d
commit 0c4a2dab7e
2 changed files with 3 additions and 3 deletions
+1 -3
View 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);
+2
View 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;