From d71efbe5f2a0ff934b8e9eeb96cd680a83bc0259 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 17 Apr 2017 14:45:08 -0700 Subject: [PATCH] anv: blorp: flush memory after copy Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Cc: "13.0 17.0" --- src/intel/vulkan/anv_blorp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c index 257ed9bbcf8..67cb145a2c6 100644 --- a/src/intel/vulkan/anv_blorp.c +++ b/src/intel/vulkan/anv_blorp.c @@ -701,10 +701,10 @@ void anv_CmdUpdateBuffer( struct anv_state tmp_data = anv_cmd_buffer_alloc_dynamic_state(cmd_buffer, copy_size, 64); - anv_state_flush(cmd_buffer->device, tmp_data); - memcpy(tmp_data.map, pData, copy_size); + anv_state_flush(cmd_buffer->device, tmp_data); + int bs = 16; bs = gcd_pow2_u64(bs, dstOffset); bs = gcd_pow2_u64(bs, copy_size); -- 2.30.2