aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-11-21 06:00:14 -0600
committerJason Ekstrand <[email protected]>2019-12-06 19:58:07 +0000
commit6ebf677cfd80e0df8cc6042734823cf53ce1b941 (patch)
tree1a7f59eed61b8ba8c5be6ea84c5cfeeb1be2e423
parent778b51f491cfe56da463195e1392293379b9fe26 (diff)
anv: Always add in EXEC_OBJECT_WRITE when specified in extra_flags
Otherwise, we're trusting in the execbuf_add_bo which sets EXEC_OBJECT_WRITE to to always be the first one that gets called. This is likely true for fences but it seems somewhat fragile. Reviewed-by: Lionel Landwerlin <[email protected]>
-rw-r--r--src/intel/vulkan/anv_batch_chain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c
index f58299b6760..67bd4df64bd 100644
--- a/src/intel/vulkan/anv_batch_chain.c
+++ b/src/intel/vulkan/anv_batch_chain.c
@@ -1136,6 +1136,11 @@ anv_execbuf_add_bo(struct anv_device *device,
obj->rsvd2 = 0;
}
+ if (extra_flags & EXEC_OBJECT_WRITE) {
+ obj->flags |= EXEC_OBJECT_WRITE;
+ obj->flags &= ~EXEC_OBJECT_ASYNC;
+ }
+
if (relocs != NULL) {
assert(obj->relocation_count == 0);