aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-10-25 14:33:48 -0500
committerJason Ekstrand <[email protected]>2019-10-31 13:46:08 +0000
commit325345b2bdec8364f570eeacb2d7528a13c6cdde (patch)
tree94ac8a8a5e0ca8cd385cdc48c344efbcee3f4705 /src
parentc4be72934ee36b3954ae76a0ae42f5daed9f6900 (diff)
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 <[email protected]>
Diffstat (limited to 'src')
-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 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;