diff options
author | Jason Ekstrand <[email protected]> | 2017-02-20 10:28:27 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-21 12:26:35 -0800 |
commit | f9d7d27d6dc46696c0c8479a3180c57774991129 (patch) | |
tree | 8a81d3959bb3c7770c56740e94348978c93833df /src/intel/vulkan/anv_private.h | |
parent | 075ed20614e91110322aadff44dbd4c1ca2422e8 (diff) |
anv: Rename clflush_range and state_clflush
It's a bit shorter and easier to work with. Also, we're about to add a
helper called clflush which does the clflush but without any memory
fencing.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r-- | src/intel/vulkan/anv_private.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index c36fdcf75b4..fa114b9967a 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -436,7 +436,7 @@ struct anv_state_stream { #define CACHELINE_MASK 63 static inline void -anv_clflush_range(void *start, size_t size) +anv_flush_range(void *start, size_t size) { void *p = (void *) (((uintptr_t) start) & ~CACHELINE_MASK); void *end = start + size; @@ -462,9 +462,9 @@ anv_invalidate_range(void *start, size_t size) } static void inline -anv_state_clflush(struct anv_state state) +anv_state_flush(struct anv_state state) { - anv_clflush_range(state.map, state.alloc_size); + anv_flush_range(state.map, state.alloc_size); } VkResult anv_block_pool_init(struct anv_block_pool *pool, |