diff options
author | Lionel Landwerlin <[email protected]> | 2017-04-17 14:45:08 -0700 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-04-17 14:45:57 -0700 |
commit | d71efbe5f2a0ff934b8e9eeb96cd680a83bc0259 (patch) | |
tree | 9153542f380906a747270340a9e8769767df5bc7 /src/intel/vulkan/anv_blorp.c | |
parent | ba6c451390fe3bb533e244dfb3c2f2014c588575 (diff) |
anv: blorp: flush memory after copy
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Cc: "13.0 17.0" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r-- | src/intel/vulkan/anv_blorp.c | 4 |
1 files 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); |