summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-11 11:10:59 -0800
committerJason Ekstrand <[email protected]>2017-11-27 16:22:12 -0800
commit67b676f0c5d4e44ac748292a8a9c639415bd1d5f (patch)
tree315d01c3a76ddea3ab29ca35541153d630ed429f /src/intel/vulkan
parent85aa4074a29b5fcb6dbf0d34b85b36c05eeecc02 (diff)
intel/blorp: Add initial support for indirect clear colors
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r--src/intel/vulkan/genX_blorp_exec.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c
index b4b05c7022a..e849a3b8e3e 100644
--- a/src/intel/vulkan/genX_blorp_exec.c
+++ b/src/intel/vulkan/genX_blorp_exec.c
@@ -64,6 +64,16 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset,
anv_batch_set_error(&cmd_buffer->batch, result);
}
+static struct blorp_address
+blorp_get_surface_base_address(struct blorp_batch *batch)
+{
+ struct anv_cmd_buffer *cmd_buffer = batch->driver_batch;
+ return (struct blorp_address) {
+ .buffer = &cmd_buffer->device->surface_state_pool.block_pool.bo,
+ .offset = 0,
+ };
+}
+
static void *
blorp_alloc_dynamic_state(struct blorp_batch *batch,
uint32_t size,