diff options
author | Jason Ekstrand <[email protected]> | 2016-11-02 10:33:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-09 11:30:55 -0800 |
commit | db9f4b2a2bbf1aff3c6c878735495fc7accbb11e (patch) | |
tree | f392682a9d6cf4466c52e704f2ea66c5ad5a07e7 /src/intel/vulkan/anv_batch_chain.c | |
parent | 07798c9c3ed29fd162ebc6b6d6beb8448218487f (diff) |
anv: Add a cmd_buffer_execbuf helper
This puts the actual execbuf2 call in anv_batch_chain.c along with the
other relocation stuff.
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Cc: "13.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_batch_chain.c')
-rw-r--r-- | src/intel/vulkan/anv_batch_chain.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index 1e348cfb004..325da83324e 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1202,3 +1202,11 @@ anv_cmd_buffer_prepare_execbuf(struct anv_cmd_buffer *cmd_buffer) if (!cmd_buffer->execbuf2.need_reloc) cmd_buffer->execbuf2.execbuf.flags |= I915_EXEC_NO_RELOC; } + +VkResult +anv_cmd_buffer_execbuf(struct anv_device *device, + struct anv_cmd_buffer *cmd_buffer) +{ + return anv_device_execbuf(device, &cmd_buffer->execbuf2.execbuf, + cmd_buffer->execbuf2.bos); +} |