anv/memcpy: fix build after starting to use addresses
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 15 Sep 2018 03:53:22 +0000 (20:53 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 15 Sep 2018 04:45:50 +0000 (21:45 -0700)
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 <clayton.a.craft@intel.com>
src/intel/vulkan/genX_gpu_memcpy.c

index 2e35964d0c92bb886ba90c0e3646edfd1172fff2..bbf3d4b63ae936178863919e03c26ba5f5e2d9ef 100644 (file)
@@ -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;