summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2021-07-08 11:47:15 -0700
committerMarge Bot <eric+marge@anholt.net>2021-07-14 01:58:00 +0000
commit86f09b14dfc33e7acdb7cf34e9f81233af00bc06 (patch)
tree1f5d3d09d6a3ebda72901e1cefb69a0ee20cca22
parent7c7722304b40df20380b5decbd533ab7a700690c (diff)
freedreno+turnip: Add a6xx gen4 support
This adds support for a660 and a635. Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11790>
-rw-r--r--docs/relnotes/new_features.txt1
-rw-r--r--src/freedreno/common/freedreno_devices.py36
2 files changed, 37 insertions, 0 deletions
diff --git a/docs/relnotes/new_features.txt b/docs/relnotes/new_features.txt
index f00cbf6bb01..e23403e4d48 100644
--- a/docs/relnotes/new_features.txt
+++ b/docs/relnotes/new_features.txt
@@ -22,3 +22,4 @@ GL_ARB_sample_locations on zink
GL_ARB_sparse_buffer on zink
GL_ARB_shader_group_vote on zink
DRM format modifiers on zink
+freedreno+turnip: Initial support for a6xx gen4 (a660, a635)
diff --git a/src/freedreno/common/freedreno_devices.py b/src/freedreno/common/freedreno_devices.py
index 119598aef79..856fa8cf652 100644
--- a/src/freedreno/common/freedreno_devices.py
+++ b/src/freedreno/common/freedreno_devices.py
@@ -212,6 +212,20 @@ a6xx_gen3 = dict(
has_sample_locations = True,
)
+# a635, a650:
+a6xx_gen4 = dict(
+ fibers_per_sp = 128 * 2 * 16,
+ reg_size_vec4 = 64,
+ supports_multiview_mask = True,
+ has_z24uint_s8uint = True,
+ tess_use_shared = True,
+ storage_16bit = True,
+ has_tex_filter_cubic = True,
+ has_sample_locations = True,
+ has_cp_reg_write = False,
+ has_8bpp_ubwc = False,
+ )
+
add_gpus([
GPUId(615),
GPUId(618),
@@ -257,6 +271,28 @@ add_gpus([
SP_UNKNOWN_A0F8 = 2,
))
+add_gpus([
+ GPUId(635, "Adreno 7c Gen 3"),
+ ], A6xxGPUInfo(
+ a6xx_gen4,
+ num_sp_cores = 2,
+ num_ccu = 2,
+ RB_UNKNOWN_8E04_blit = 0x00100000,
+ PC_UNKNOWN_9805 = 1,
+ SP_UNKNOWN_A0F8 = 1,
+ ))
+
+add_gpus([
+ GPUId(660),
+ ], A6xxGPUInfo(
+ a6xx_gen4,
+ num_sp_cores = 3,
+ num_ccu = 3,
+ RB_UNKNOWN_8E04_blit = 0x04100000,
+ PC_UNKNOWN_9805 = 2,
+ SP_UNKNOWN_A0F8 = 2,
+ ))
+
template = """\
/* Copyright (C) 2021 Google, Inc.
*