diff options
author | Jason Ekstrand <[email protected]> | 2017-03-30 11:48:05 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-04-04 18:33:52 -0700 |
commit | 439da38d184b5e9dddcfb245a2454879e7632649 (patch) | |
tree | ec1248e35f354eb1fe8c6855e971247c7eeab1d6 /src/intel/vulkan/anv_batch_chain.c | |
parent | f938354362655a378d474c5f79c52cea9852ab91 (diff) |
anv: Replace anv_bo::is_winsys_bo with a uint32_t flags
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_batch_chain.c')
-rw-r--r-- | src/intel/vulkan/anv_batch_chain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 5a6c0ba1a96..5f0528fc8f5 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -149,7 +149,7 @@ anv_reloc_list_add(struct anv_reloc_list *list, int index; const uint32_t domain = - target_bo->is_winsys_bo ? I915_GEM_DOMAIN_RENDER : 0; + (target_bo->flags & EXEC_OBJECT_WRITE) ? I915_GEM_DOMAIN_RENDER : 0; VkResult result = anv_reloc_list_grow(list, alloc, 1); if (result != VK_SUCCESS) @@ -1036,7 +1036,7 @@ anv_execbuf_add_bo(struct anv_execbuf *exec, obj->relocs_ptr = 0; obj->alignment = 0; obj->offset = bo->offset; - obj->flags = bo->is_winsys_bo ? EXEC_OBJECT_WRITE : 0; + obj->flags = bo->flags; obj->rsvd1 = 0; obj->rsvd2 = 0; } |