diff options
author | Jason Ekstrand <[email protected]> | 2015-10-15 13:45:07 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-10-15 13:45:07 -0700 |
commit | 6dc4cad994ca03b71f99b79856d8d8ff5cf3ed83 (patch) | |
tree | 108b15d74ae3ed94f6a1d431edd96cd87a33d087 /src/vulkan/anv_batch_chain.c | |
parent | 896c1c65d67089417709f567c03e6930fc7af958 (diff) |
anv/cmd_buffer: Add an alloc_surface_state helper
Diffstat (limited to 'src/vulkan/anv_batch_chain.c')
-rw-r--r-- | src/vulkan/anv_batch_chain.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vulkan/anv_batch_chain.c b/src/vulkan/anv_batch_chain.c index c621c0745b7..77fbd6635c0 100644 --- a/src/vulkan/anv_batch_chain.c +++ b/src/vulkan/anv_batch_chain.c @@ -484,6 +484,12 @@ anv_cmd_buffer_alloc_binding_table(struct anv_cmd_buffer *cmd_buffer, } struct anv_state +anv_cmd_buffer_alloc_surface_state(struct anv_cmd_buffer *cmd_buffer) +{ + return anv_state_stream_alloc(&cmd_buffer->surface_state_stream, 64, 64); +} + +struct anv_state anv_cmd_buffer_alloc_dynamic_state(struct anv_cmd_buffer *cmd_buffer, uint32_t size, uint32_t alignment) { |