diff options
author | Jason Ekstrand <[email protected]> | 2015-09-22 10:58:34 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-09-24 08:42:38 -0700 |
commit | bc17f9c9d76dbf2cdc657cfb6861b887dbca3046 (patch) | |
tree | 6037b9e66eaeb10f1d875a7c688ac2fb7fc3d56e /src/vulkan/anv_batch_chain.c | |
parent | e1a7c721d34158f94f6b6dee94a211d32e9f5752 (diff) |
anv/cmd_buffer: Add a helper for getting the surface state base address
Diffstat (limited to 'src/vulkan/anv_batch_chain.c')
-rw-r--r-- | src/vulkan/anv_batch_chain.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index b8f08b9cd8a..6c37ce0aca3 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -395,6 +395,15 @@ anv_cmd_buffer_current_surface_relocs(struct anv_cmd_buffer *cmd_buffer) return &anv_cmd_buffer_current_surface_bbo(cmd_buffer)->relocs; } +struct anv_address +anv_cmd_buffer_surface_base_address(struct anv_cmd_buffer *cmd_buffer) +{ + return (struct anv_address) { + .bo = anv_cmd_buffer_current_surface_bo(cmd_buffer), + .offset = 0, + }; +} + static void emit_batch_buffer_start(struct anv_batch *batch, struct anv_bo *bo, uint32_t offset) { |