}
if (flush && !device->info.has_llc)
- anv_clflush_range(p, reloc_size);
+ anv_flush_range(p, reloc_size);
}
static void
memcpy(state.map, data, size);
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
VG(VALGRIND_CHECK_MEM_IS_DEFINED(state.map, size));
p[i] = a[i] | b[i];
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
VG(VALGRIND_CHECK_MEM_IS_DEFINED(p, dwords * 4));
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
return state;
}
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
return state;
}
memcpy(state.map, p, size);
if (!pool->block_pool->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
return state;
}
memcpy(bo.map, batch->start, size);
if (!device->info.has_llc)
- anv_clflush_range(bo.map, size);
+ anv_flush_range(bo.map, size);
exec_bos[0] = &bo;
exec2_objects[0].handle = bo.gem_handle;
.stride = stride);
if (!device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
}
void anv_DestroySampler(
.mocs = device->default_mocs);
if (!device->info.has_llc)
- anv_state_clflush(iview->sampler_surface_state);
+ anv_state_flush(iview->sampler_surface_state);
} else {
iview->sampler_surface_state.alloc_size = 0;
}
&surface->isl, &iview->isl);
if (!device->info.has_llc) {
- anv_state_clflush(iview->storage_surface_state);
- anv_state_clflush(iview->writeonly_storage_surface_state);
+ anv_state_flush(iview->storage_surface_state);
+ anv_state_flush(iview->writeonly_storage_surface_state);
}
} else {
iview->storage_surface_state.alloc_size = 0;
#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;
}
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,
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(scissor_state);
+ anv_state_flush(scissor_state);
}
#endif
};
GENX(COLOR_CALC_STATE_pack)(NULL, cc_state.map, &cc);
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(cc_state);
+ anv_state_flush(cc_state);
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CC_STATE_POINTERS), ccp) {
ccp.ColorCalcStatePointer = cc_state.offset;
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(sf_clip_state);
+ anv_state_flush(sf_clip_state);
anv_batch_emit(&cmd_buffer->batch,
GENX(3DSTATE_VIEWPORT_STATE_POINTERS_SF_CLIP), clip) {
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(cc_state);
+ anv_state_flush(cc_state);
anv_batch_emit(&cmd_buffer->batch,
GENX(3DSTATE_VIEWPORT_STATE_POINTERS_CC), cc) {
GENX(COLOR_CALC_STATE_pack)(NULL, cc_state.map, &cc);
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(cc_state);
+ anv_state_flush(cc_state);
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CC_STATE_POINTERS), ccp) {
ccp.ColorCalcStatePointer = cc_state.offset;
GEN9_COLOR_CALC_STATE_pack(NULL, cc_state.map, &cc);
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(cc_state);
+ anv_state_flush(cc_state);
anv_batch_emit(&cmd_buffer->batch, GEN9_3DSTATE_CC_STATE_POINTERS, ccp) {
ccp.ColorCalcStatePointer = cc_state.offset;
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(bt_state);
+ anv_state_flush(bt_state);
}
static void *
{
struct anv_device *device = batch->blorp->driver_ctx;
if (!device->info.has_llc)
- anv_clflush_range(start, size);
+ anv_flush_range(start, size);
}
static void
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state->render_pass_states);
+ anv_state_flush(state->render_pass_states);
}
}
out:
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(*bt_state);
+ anv_state_flush(*bt_state);
return VK_SUCCESS;
}
}
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(*state);
+ anv_state_flush(*state);
return VK_SUCCESS;
}
((uint32_t *)id_state.map)[1] = base_instance;
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(id_state);
+ anv_state_flush(id_state);
emit_base_vertex_instance_bo(cmd_buffer,
&cmd_buffer->device->dynamic_state_block_pool.bo, id_state.offset);
((uint32_t *)state.map)[0] = draw_index;
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
emit_vertex_bo(cmd_buffer,
&cmd_buffer->device->dynamic_state_block_pool.bo,
sizes[1] = y;
sizes[2] = z;
if (!cmd_buffer->device->info.has_llc)
- anv_state_clflush(state);
+ anv_state_flush(state);
cmd_buffer->state.num_workgroups_offset = state.offset;
cmd_buffer->state.num_workgroups_bo =
&cmd_buffer->device->dynamic_state_block_pool.bo;
GENX(BLEND_STATE_pack)(NULL, pipeline->blend_state.map, &blend_state);
if (!device->info.has_llc)
- anv_state_clflush(pipeline->blend_state);
+ anv_state_flush(pipeline->blend_state);
anv_batch_emit(&pipeline->batch, GENX(3DSTATE_BLEND_STATE_POINTERS), bsp) {
bsp.BlendStatePointer = pipeline->blend_state.offset;