diff options
author | Jonathan Marek <[email protected]> | 2019-02-19 19:01:55 +0100 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-02-27 18:46:28 +0000 |
commit | 4f23767590d1374c4cf2b5ddeedd9dd375c296f1 (patch) | |
tree | fe90a19314500d3b80ae1680ced37cebba6a83a1 /src/gallium/drivers/freedreno | |
parent | 8eca6df5ed5ad6df51a3aad271856d7da56d1292 (diff) |
freedreno: a2xx: fix fast clear for some gmem configurations
In freedreno_gmem.c, gmem_align of 0x8000 is used. Alignment used here
should be the same.
Fixes: 912a9c8d
Signed-off-by: Jonathan Marek <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/a2xx/fd2_gmem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c b/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c index 84483bc2fc7..692188ebd4e 100644 --- a/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c +++ b/src/gallium/drivers/freedreno/a2xx/fd2_gmem.c @@ -512,18 +512,18 @@ fd2_emit_tile_init(struct fd_batch *batch) /* note: 1 "line" is 512 bytes in both color/depth areas (1K total) */ switch (patch->val) { case GMEM_PATCH_FASTCLEAR_COLOR: - size = align(gmem->bin_w * gmem->bin_h * color_size, 0x4000); + size = align(gmem->bin_w * gmem->bin_h * color_size, 0x8000); lines = size / 1024; depth_base = size / 2; break; case GMEM_PATCH_FASTCLEAR_DEPTH: - size = align(gmem->bin_w * gmem->bin_h * depth_size, 0x4000); + size = align(gmem->bin_w * gmem->bin_h * depth_size, 0x8000); lines = size / 1024; color_base = depth_base; depth_base = depth_base + size / 2; break; case GMEM_PATCH_FASTCLEAR_COLOR_DEPTH: - lines = align(gmem->bin_w * gmem->bin_h * color_size * 2, 0x4000) / 1024; + lines = align(gmem->bin_w * gmem->bin_h * color_size * 2, 0x8000) / 1024; break; case GMEM_PATCH_RESTORE_INFO: patch->cs[0] = gmem->bin_w; |