turnip: Add a618 support
authorChad Versace <chad@kiwitree.net>
Fri, 7 Feb 2020 01:53:49 +0000 (17:53 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 12 Feb 2020 23:27:43 +0000 (23:27 +0000)
I merely ported a freedreno patch to turnip which
updates some magic regsiter values.

    commit ff6e148a3d60e6e7f3b33f134228b1ed4216903e
    Author:     Rob Clark <robdclark@chromium.org>
    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 <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3743>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3743>

src/freedreno/vulkan/tu_device.c

index f7e3e10fa4b65f2ac63b8062af322e9c8d724309..1f9b591ab3bff085570b6db138a7c004a6eec0a4 100644 (file)
@@ -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;