mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
anv/so_memcpy: Don't consider src/dst_offset when computing block size
The only thing that matters is the size since we never specify any offsets in terms of blocks. Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
09171705d5
commit
c811af767e
1 changed files with 2 additions and 4 deletions
|
|
@ -137,10 +137,8 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
|||
assert(src.offset + size <= src.bo->size);
|
||||
|
||||
/* 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, size);
|
||||
assert(size % 4 == 0);
|
||||
unsigned bs = gcd_pow2_u64(16, size);
|
||||
|
||||
enum isl_format format;
|
||||
switch (bs) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue