diff options
author | Jason Ekstrand <[email protected]> | 2018-06-01 14:05:53 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-01 16:33:07 -0700 |
commit | 7105b7890ae0ccfab0d30ff037af588dd1af7c96 (patch) | |
tree | a20a4e35927313465e6e0f4d08610343d5638700 /src/intel/vulkan | |
parent | 4affeba1e9eb426a1ba13a3e8ced4673c4bb9b34 (diff) |
anv: Assert that the kernel leaves pinned BO addresses alone
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_queue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index 80dddeb11bd..a0cbc344b53 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -49,8 +49,11 @@ anv_device_execbuf(struct anv_device *device, struct drm_i915_gem_exec_object2 *objects = (void *)(uintptr_t)execbuf->buffers_ptr; - for (uint32_t k = 0; k < execbuf->buffer_count; k++) + for (uint32_t k = 0; k < execbuf->buffer_count; k++) { + if (execbuf_bos[k]->flags & EXEC_OBJECT_PINNED) + assert(execbuf_bos[k]->offset == objects[k].offset); execbuf_bos[k]->offset = objects[k].offset; + } return VK_SUCCESS; } |