diff options
author | Jason Ekstrand <[email protected]> | 2017-06-05 14:19:28 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-06-07 08:54:54 -0700 |
commit | 9cb6ac62fbab86ed914152b40cb1f8f4ee7fdaff (patch) | |
tree | 304896635d8f2862195ff1d1827d43a561bb9470 /src/intel/vulkan | |
parent | ed5801864ede0a04fb5fa80bf9ffea40e5c0e022 (diff) |
intel/blorp: Plumb through access to the workaround BO
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101283
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/genX_blorp_exec.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index eb338991456..04c5499a08c 100644 --- a/src/intel/vulkan/genX_blorp_exec.c +++ b/src/intel/vulkan/genX_blorp_exec.c @@ -139,6 +139,18 @@ blorp_alloc_vertex_buffer(struct blorp_batch *batch, uint32_t size, return vb_state.map; } +#if GEN_GEN >= 8 +static struct blorp_address +blorp_get_workaround_page(struct blorp_batch *batch) +{ + struct anv_cmd_buffer *cmd_buffer = batch->driver_batch; + + return (struct blorp_address) { + .buffer = &cmd_buffer->device->workaround_bo, + }; +} +#endif + static void blorp_flush_range(struct blorp_batch *batch, void *start, size_t size) { |