From 787b56ac0e5d62ad07cb0804be5275d885201262 Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Thu, 6 Feb 2020 17:53:49 -0800 Subject: [PATCH] turnip: Add a618 support I merely ported a freedreno patch to turnip which updates some magic regsiter values. commit ff6e148a3d60e6e7f3b33f134228b1ed4216903e Author: Rob Clark CommitDate: Tue Oct 29 09:19:34 2019 -0700 Subject: freedreno/a6xx: add a618 support That's all that Rob did for gallium for a618, so I assume that's we need for turnip also. Tested manually with: dEQP-VK.api.image_clearing.core.clear_color_image.2d.linear.single_layer.* pass 300/555 fail 0/555 skip 255/555 Tested-by: Marge Bot Part-of: --- src/freedreno/vulkan/tu_device.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedreno/vulkan/tu_device.c b/src/freedreno/vulkan/tu_device.c index f7e3e10fa4b..1f9b591ab3b 100644 --- a/src/freedreno/vulkan/tu_device.c +++ b/src/freedreno/vulkan/tu_device.c @@ -256,6 +256,14 @@ tu_physical_device_init(struct tu_physical_device *device, sprintf(device->name, "FD%d", device->gpu_id); switch (device->gpu_id) { + case 618: + device->tile_align_w = 64; + device->tile_align_h = 16; + device->magic.RB_UNKNOWN_8E04_blit = 0x00100000; + device->magic.RB_CCU_CNTL_gmem = 0x3e400004; + device->magic.PC_UNKNOWN_9805 = 0x0; + device->magic.SP_UNKNOWN_A0F8 = 0x0; + break; case 630: case 640: device->tile_align_w = 64; -- 2.30.2