diff options
author | Eric Anholt <[email protected]> | 2020-04-14 14:35:05 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-23 16:37:50 +0000 |
commit | bd76a24fd130bb5a45fea72a3041104ccfb4a8d1 (patch) | |
tree | 929aa5456cccf666ac9401733115844cd4ecaaed /src/gallium/drivers/freedreno/a5xx | |
parent | 6a6e71524dc8d6795c7d6188538c8496f2f4c025 (diff) |
freedreno: Introduce a "cpp_shift" value for cpp divs/muls.
This only converts part of the driver to use it, leaving the rest to the
following commit (which inspired this one).
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4558>
Diffstat (limited to 'src/gallium/drivers/freedreno/a5xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_gmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c index c6564669e46..eb8b5404e86 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_gmem.c @@ -498,7 +498,7 @@ emit_mem2gmem_surf(struct fd_batch *batch, uint32_t base, buf = BLIT_MRT0; } - stride = gmem->bin_w * rsc->layout.cpp; + stride = gmem->bin_w << fdl_cpp_shift(&rsc->layout); size = stride * gmem->bin_h; OUT_PKT4(ring, REG_A5XX_RB_BLIT_FLAG_DST_LO, 4); |