From a0d67b7a1c32f4fcfdc8c6a66bc3359b1003c752 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 12 Aug 2020 17:07:19 +1000 Subject: [PATCH] anv: add no reloc flags on empty and simple bo paths. These two paths should have no relocs. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_batch_chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index d6311a66fa4..823345eeec1 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1636,7 +1636,7 @@ setup_empty_execbuf(struct anv_execbuf *execbuf, struct anv_device *device) .buffer_count = execbuf->bo_count, .batch_start_offset = 0, .batch_len = 8, /* GEN7_MI_BATCH_BUFFER_END and NOOP */ - .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER, + .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER | I915_EXEC_NO_RELOC, .rsvd1 = device->context_id, .rsvd2 = 0, }; @@ -1709,7 +1709,7 @@ anv_queue_execbuf_locked(struct anv_queue *queue, .buffer_count = execbuf.bo_count, .batch_start_offset = 0, .batch_len = submit->simple_bo_size, - .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER, + .flags = I915_EXEC_HANDLE_LUT | I915_EXEC_RENDER | I915_EXEC_NO_RELOC, .rsvd1 = device->context_id, .rsvd2 = 0, }; -- 2.30.2