summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2018-09-14 20:53:22 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2018-09-14 21:45:50 -0700
commitf9d25f630c4258974aec6b203512f0400db047b8 (patch)
tree1eba13e0b18aaf74b33884dbd082183c6e19b87c
parentd6a73824bd380e2004412993566cf06df2d31d4a (diff)
anv/memcpy: fix build after starting to use addresses
The offsets now come from the anv_address, these references were not updated and using the old variable. Fixes: e1ab8345574 "anv/memcpy: Use addresses instead of bo+offset" Tested-by: Clayton Craft <[email protected]>
-rw-r--r--src/intel/vulkan/genX_gpu_memcpy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/vulkan/genX_gpu_memcpy.c b/src/intel/vulkan/genX_gpu_memcpy.c
index 2e35964d0c9..bbf3d4b63ae 100644
--- a/src/intel/vulkan/genX_gpu_memcpy.c
+++ b/src/intel/vulkan/genX_gpu_memcpy.c
@@ -121,8 +121,8 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
/* The maximum copy block size is 4 32-bit components at a time. */
unsigned bs = 16;
- bs = gcd_pow2_u64(bs, src_offset);
- bs = gcd_pow2_u64(bs, dst_offset);
+ bs = gcd_pow2_u64(bs, src.offset);
+ bs = gcd_pow2_u64(bs, dst.offset);
bs = gcd_pow2_u64(bs, size);
enum isl_format format;