From: Lionel Landwerlin Date: Mon, 17 Apr 2017 21:45:08 +0000 (-0700) Subject: anv: blorp: flush memory after copy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d71efbe5f2a0ff934b8e9eeb96cd680a83bc0259;p=mesa.git anv: blorp: flush memory after copy Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Cc: "13.0 17.0" --- 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);