From d4a28ae52abddd37c2adc6bb1f4e4b2de76a16fa Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 8 Apr 2016 17:07:49 -0700 Subject: anv/meta: Make clflushes conditional on !devinfo->has_llc --- src/intel/vulkan/anv_meta_blit.c | 3 ++- src/intel/vulkan/anv_meta_blit2d.c | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/intel/vulkan/anv_meta_blit.c b/src/intel/vulkan/anv_meta_blit.c index b726b94c3cd..24e47142a5c 100644 --- a/src/intel/vulkan/anv_meta_blit.c +++ b/src/intel/vulkan/anv_meta_blit.c @@ -186,7 +186,8 @@ meta_emit_blit(struct anv_cmd_buffer *cmd_buffer, }, }; - anv_state_clflush(vb_state); + if (!device->info.has_llc) + anv_state_clflush(vb_state); struct anv_buffer vertex_buffer = { .device = device, diff --git a/src/intel/vulkan/anv_meta_blit2d.c b/src/intel/vulkan/anv_meta_blit2d.c index 6d6127a8693..a7405e00810 100644 --- a/src/intel/vulkan/anv_meta_blit2d.c +++ b/src/intel/vulkan/anv_meta_blit2d.c @@ -468,7 +468,8 @@ anv_meta_blit2d_normal_dst(struct anv_cmd_buffer *cmd_buffer, }, }; - anv_state_clflush(vb_state); + if (!device->info.has_llc) + anv_state_clflush(vb_state); struct anv_buffer vertex_buffer = { .device = device, @@ -611,7 +612,8 @@ anv_meta_blit2d_w_tiled_dst(struct anv_cmd_buffer *cmd_buffer, }, }; - anv_state_clflush(vb_state); + if (!device->info.has_llc) + anv_state_clflush(vb_state); struct anv_buffer vertex_buffer = { .device = device, -- cgit v1.2.3