diff options
author | Jason Ekstrand <[email protected]> | 2017-02-20 11:04:12 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-02-21 12:26:35 -0800 |
commit | f31ed6d0cd3c6b66304bb060a0c204ecf8621e6a (patch) | |
tree | 14a3f2ba7984256b209405d0a43993795b62358e /src/intel/vulkan/anv_device.c | |
parent | f408971deb7821cc140f1d373a104c2e1cb24eeb (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 6 |
1 files changed, 2 insertions, 4 deletions
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( |