diff options
author | Lionel Landwerlin <[email protected]> | 2017-04-17 14:45:08 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-04-24 13:11:13 +0100 |
commit | 0f2ac6ded80e0c4676eb2c57862248d66f846abf (patch) | |
tree | 59b1433ef97bd54f8b7faf5c3895c542f0c2a2e0 /src/intel | |
parent | bea2c4b88fa6d0bd0239f0e35a5cab5b73fce4fa (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]>
(cherry picked from commit d71efbe5f2a0ff934b8e9eeb96cd680a83bc0259)
Diffstat (limited to 'src/intel')
-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); |