We use the look-up table mechanism for relocations so this isn't the value we want. The correct value is filled out at execbuf2 time by anv_cmd_buffer_process_relocs. --- src/intel/vulkan/anv_batch_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index cc4f92e..5811503 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -165,7 +165,7 @@ anv_reloc_list_add(struct anv_reloc_list *list, int index = list->num_relocs++; list->reloc_bos[index] = target_bo; list->relocs[index] = (struct drm_i915_gem_relocation_entry) { - .target_handle = target_bo->gem_handle, + .target_handle = -1, .delta = delta, .offset = offset, .presumed_offset = presumed_offset, -- 2.5.0.400.gff86faf _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev