Mesa (master): freedreno/gmemtool: add tile_alignw/h and a650

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Aug 25 22:37:59 UTC 2020


Module: Mesa
Branch: master
Commit: 758fdb9f3315d9ee4c31ed90e379f98928acd8b5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=758fdb9f3315d9ee4c31ed90e379f98928acd8b5

Author: Rob Clark <robdclark at chromium.org>
Date:   Tue Aug 25 09:50:59 2020 -0700

freedreno/gmemtool: add tile_alignw/h and a650

Fixes: f6f8a190920 ("freedreno/a6xx: split up gmem/tile alignment requirements")
Signed-off-by: Rob Clark <robdclark at chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6461>

---

 src/gallium/drivers/freedreno/gmemtool.c | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/gallium/drivers/freedreno/gmemtool.c b/src/gallium/drivers/freedreno/gmemtool.c
index c0862bc5ad9..983936f1a25 100644
--- a/src/gallium/drivers/freedreno/gmemtool.c
+++ b/src/gallium/drivers/freedreno/gmemtool.c
@@ -82,6 +82,8 @@ struct gpu_info {
 	uint32_t gpu_id;
 	uint32_t gmem_alignw;
 	uint32_t gmem_alignh;
+	uint32_t tile_alignw;
+	uint32_t tile_alignh;
 	uint32_t num_vsc_pipes;
 	uint8_t  gmem_page_align;
 	uint32_t gmemsize_bytes;
@@ -94,11 +96,12 @@ struct gpu_info {
 
 /* keep sorted by gpu name: */
 static const struct gpu_info gpu_infos[] = {
-	{ "a306", 307, 32, 32,  8, 4, SZ_128K },
-	{ "a405", 405, 32, 32,  8, 4, SZ_256K },
-	{ "a530", 530, 64, 32, 16, 4, SZ_1M   },
-	{ "a618", 618, 32, 32, 32, 1, SZ_512K },
-	{ "a630", 630, 32, 32, 32, 1, SZ_1M   },
+	{ "a306", 307, 32, 32, 32, 32,  8, 4, SZ_128K },
+	{ "a405", 405, 32, 32, 32, 32,  8, 4, SZ_256K },
+	{ "a530", 530, 64, 32, 64, 32, 16, 4, SZ_1M   },
+	{ "a618", 618, 16,  4, 32, 32, 32, 1, SZ_512K },
+	{ "a630", 630, 16,  4, 32, 32, 32, 1, SZ_1M   },
+	{ "a650", 630, 16,  4, 96, 32, 32, 1, SZ_1M + SZ_128K },
 };
 
 
@@ -167,6 +170,8 @@ main(int argc, char **argv)
 		.gpu_id         = gpu_info->gpu_id,
 		.gmem_alignw    = gpu_info->gmem_alignw,
 		.gmem_alignh    = gpu_info->gmem_alignh,
+		.tile_alignw    = gpu_info->tile_alignw,
+		.tile_alignh    = gpu_info->tile_alignh,
 		.num_vsc_pipes  = gpu_info->num_vsc_pipes,
 		.gmemsize_bytes = gpu_info->gmemsize_bytes,
 	};



More information about the mesa-commit mailing list