From 29a139b308d51560e0f1d5862fa228023c9a5a04 Mon Sep 17 00:00:00 2001 From: Scott D Phillips Date: Wed, 30 May 2018 20:24:15 -0700 Subject: anv/blorp: Write relocated values into surface states v2 (Jason Ekstrand): - Split the blorp bit into it's own patch and re-order a bit - Use anv_address helpers Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_batch_chain.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/intel/vulkan/anv_batch_chain.c') diff --git a/src/intel/vulkan/anv_batch_chain.c b/src/intel/vulkan/anv_batch_chain.c index a1fb8bf731a..ec8815a3c44 100644 --- a/src/intel/vulkan/anv_batch_chain.c +++ b/src/intel/vulkan/anv_batch_chain.c @@ -1105,22 +1105,6 @@ anv_cmd_buffer_process_relocs(struct anv_cmd_buffer *cmd_buffer, list->relocs[i].target_handle = list->reloc_bos[i]->index; } -static void -write_reloc(const struct anv_device *device, void *p, uint64_t v, bool flush) -{ - unsigned reloc_size = 0; - if (device->info.gen >= 8) { - reloc_size = sizeof(uint64_t); - *(uint64_t *)p = gen_canonical_address(v); - } else { - reloc_size = sizeof(uint32_t); - *(uint32_t *)p = v; - } - - if (flush && !device->info.has_llc) - gen_flush_range(p, reloc_size); -} - static void adjust_relocations_from_state_pool(struct anv_state_pool *pool, struct anv_reloc_list *relocs, -- cgit v1.2.3