diff options
author | Eric Anholt <[email protected]> | 2020-04-14 11:14:31 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-23 16:37:50 +0000 |
commit | 5a8718f01b3976e1bc82362a907befef68a7f525 (patch) | |
tree | 41cd79d33265f29d7249464bc946017c6d9a77ac /src/gallium/drivers/freedreno/a5xx/fd5_blitter.c | |
parent | bd76a24fd130bb5a45fea72a3041104ccfb4a8d1 (diff) |
freedreno: Make the slice pitch be bytes, not pixels.
Back in a2xx, HW pitches were in pixels, so storing that was reasonable.
Ever since then, the HW wants pitches in bytes, and we have only one
instance of using pitch in pixels in the code (a3xx sysmem path).
Flip things around so that only a2xx has to worry about the cpp for
looking at pitches.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4558>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx/fd5_blitter.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_blitter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c index cffcae86a8b..bd4c35603f7 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_blitter.c @@ -348,8 +348,8 @@ emit_blit(struct fd_ringbuffer *ring, const struct pipe_blit_info *info) sswap = fd5_pipe2swap(info->src.format); dswap = fd5_pipe2swap(info->dst.format); - spitch = sslice->pitch * src->layout.cpp; - dpitch = dslice->pitch * dst->layout.cpp; + spitch = sslice->pitch; + dpitch = dslice->pitch; /* if dtile, then dswap ignored by hw, and likewise if stile then sswap * ignored by hw.. but in this case we have already rejected the blit |