diff options
author | Marek Olšák <[email protected]> | 2016-10-26 18:48:36 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-11-01 22:33:13 +0100 |
commit | e9c76eeeaa673331fec6056a4baa30095de42f5e (patch) | |
tree | db1b94cd0e0af28090212f33865a2cf6a04eaee0 /src/gallium/drivers/radeonsi/si_dma.c | |
parent | c66a550385b4937b2aaba8484aeaa41cf77399b7 (diff) |
gallium/radeon: remove radeon_surf_level::pitch_bytes
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_dma.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_dma.c b/src/gallium/drivers/radeonsi/si_dma.c index 6bbb5d647d9..dee5ec58907 100644 --- a/src/gallium/drivers/radeonsi/si_dma.c +++ b/src/gallium/drivers/radeonsi/si_dma.c @@ -232,8 +232,8 @@ static void si_dma_copy(struct pipe_context *ctx, dst_y = util_format_get_nblocksy(src->format, dst_y); bpp = rdst->surface.bpe; - dst_pitch = rdst->surface.level[dst_level].pitch_bytes; - src_pitch = rsrc->surface.level[src_level].pitch_bytes; + dst_pitch = rdst->surface.level[dst_level].nblk_x * rdst->surface.bpe; + src_pitch = rsrc->surface.level[src_level].nblk_x * rsrc->surface.bpe; src_w = u_minify(rsrc->resource.b.b.width0, src_level); dst_w = u_minify(rdst->resource.b.b.width0, dst_level); |