summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-10-28 11:17:06 -0500
committerJason Ekstrand <[email protected]>2019-10-29 20:27:52 +0000
commit52aa7f3e0509a1e6cf42c37c0c83730484633194 (patch)
treee3ea57b86fe3ebb1346e8e7b2435112e4101d538
parenta3153162a9b9a96b2f3b03b5016370366de203f0 (diff)
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 <[email protected]>
-rw-r--r--src/intel/vulkan/anv_batch_chain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index 70c14d14f49..c5362aaebc2 100644
--- a/src/intel/vulkan/anv_batch_chain.c
+++ b/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;