projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4affeba
)
anv: Assert that the kernel leaves pinned BO addresses alone
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 1 Jun 2018 21:05:53 +0000
(14:05 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 1 Jun 2018 23:33:07 +0000
(16:33 -0700)
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/vulkan/anv_queue.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_queue.c
b/src/intel/vulkan/anv_queue.c
index 80dddeb11bd56a93c48383b3a73108e09a856a9d..a0cbc344b53bda7726ad636a777350a49b60d021 100644
(file)
--- 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;
}