aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_device.c
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2020-01-21 21:12:57 -0500
committerMarge Bot <[email protected]>2020-04-24 17:42:01 +0000
commitc3ef0275c49845f91a3f5d97088954a6d9b877d2 (patch)
treea69cfca239d8cbc9948aa25beec77a338e36a340 /src/freedreno/vulkan/tu_device.c
parentaa3624b8ab7815e7ac54ba656d4e8ffa6ae25e03 (diff)
turnip: add adreno 650
Tile alignment is 96, with gmem alignment of 0x6000 Signed-off-by: Jonathan Marek <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4608>
Diffstat (limited to 'src/freedreno/vulkan/tu_device.c')
-rw-r--r--src/freedreno/vulkan/tu_device.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c
index ea1ee8ee8aa..30cc1442dd4 100644
--- a/src/freedreno/vulkan/tu_device.c
+++ b/src/freedreno/vulkan/tu_device.c
@@ -267,6 +267,7 @@ tu_physical_device_init(struct tu_physical_device *device,
case 618:
device->ccu_offset_gmem = 0x7c000; /* 0x7e000 in some cases? */
device->ccu_offset_bypass = 0x10000;
+ device->tile_align_w = 64;
device->magic.PC_UNKNOWN_9805 = 0x0;
device->magic.SP_UNKNOWN_A0F8 = 0x0;
break;
@@ -274,9 +275,17 @@ tu_physical_device_init(struct tu_physical_device *device,
case 640:
device->ccu_offset_gmem = 0xf8000;
device->ccu_offset_bypass = 0x20000;
+ device->tile_align_w = 64;
device->magic.PC_UNKNOWN_9805 = 0x1;
device->magic.SP_UNKNOWN_A0F8 = 0x1;
break;
+ case 650:
+ device->ccu_offset_gmem = 0x114000;
+ device->ccu_offset_bypass = 0x30000;
+ device->tile_align_w = 96;
+ device->magic.PC_UNKNOWN_9805 = 0x2;
+ device->magic.SP_UNKNOWN_A0F8 = 0x2;
+ break;
default:
result = vk_errorf(instance, VK_ERROR_INITIALIZATION_FAILED,
"device %s is unsupported", device->name);