From: Jason Ekstrand Date: Fri, 25 Oct 2019 19:33:48 +0000 (-0500) Subject: anv: Stop storing the GEM handle in anv_reloc_list_add X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=325345b2bdec8364f570eeacb2d7528a13c6cdde;p=mesa.git anv: Stop storing the GEM handle in anv_reloc_list_add We have to go through and rewrite them all anyway so it doesn't do us any good to put them in the list in anv_reloc_list_add. Also, for state pools the handles are likely wrong by the time vkQueueSubmit is called. Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index b64e36c9523..795dc839d84 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -176,7 +176,7 @@ anv_reloc_list_add(struct anv_reloc_list *list, index = list->num_relocs++; list->reloc_bos[index] = target_bo; entry = &list->relocs[index]; - entry->target_handle = target_bo->gem_handle; + entry->target_handle = -1; /* See also anv_cmd_buffer_process_relocs() */ entry->delta = delta; entry->offset = offset; entry->presumed_offset = target_bo_offset;