anv: Always add in EXEC_OBJECT_WRITE when specified in extra_flags
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 21 Nov 2019 12:00:14 +0000 (06:00 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 6 Dec 2019 19:58:07 +0000 (19:58 +0000)
commit6ebf677cfd80e0df8cc6042734823cf53ce1b941
tree1a7f59eed61b8ba8c5be6ea84c5cfeeb1be2e423
parent778b51f491cfe56da463195e1392293379b9fe26
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>
src/intel/vulkan/anv_batch_chain.c