mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 21:30:09 +01:00
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 <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
778b51f491
commit
6ebf677cfd
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue