From f31ed6d0cd3c6b66304bb060a0c204ecf8621e6a Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 20 Feb 2017 11:04:12 -0800 Subject: anv: Take a device parameter in anv_state_flush This allows the helper to check for llc instead of having to do it manually at all the call sites. Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_device.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/intel/vulkan/anv_device.c') diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index f52b42a542f..6f570d8f541 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -861,8 +861,7 @@ anv_state_pool_emit_data(struct anv_state_pool *pool, size_t size, size_t align, state = anv_state_pool_alloc(pool, size, align); memcpy(state.map, p, size); - if (!pool->block_pool->device->info.has_llc) - anv_state_flush(state); + anv_state_flush(pool->block_pool->device, state); return state; } @@ -2055,8 +2054,7 @@ anv_fill_buffer_surface_state(struct anv_device *device, struct anv_state state, .format = format, .stride = stride); - if (!device->info.has_llc) - anv_state_flush(state); + anv_state_flush(device, state); } void anv_DestroySampler( -- cgit v1.2.3