瀏覽代碼

anv: Reduce the minimum number of relocations

The original value of 256 was under the assumption that you're a batch
buffer which is likely going to have a large number of relocations.
However, pipeline objects on Gen7 will have at most 6 relocations (one
per shader stage and one for the workaround BO) so this is a lot of
per-pipeline wasted space.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
tags/19.3-branchpoint
Jason Ekstrand 6 年之前
父節點
當前提交
52aa7f3e05
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/intel/vulkan/anv_batch_chain.c

+ 1
- 1
src/intel/vulkan/anv_batch_chain.c 查看文件

@@ -118,7 +118,7 @@ anv_reloc_list_grow(struct anv_reloc_list *list,
if (list->num_relocs + num_additional_relocs <= list->array_length)
return VK_SUCCESS;

size_t new_length = MAX2(256, list->array_length * 2);
size_t new_length = MAX2(16, list->array_length * 2);
while (new_length < list->num_relocs + num_additional_relocs)
new_length *= 2;


Loading…
取消
儲存