sincorchetes / rpms / mesa

Forked from rpms/mesa 2 years ago
Clone
d11d1f4
From 8339af08627104557ecd69e0e23396f2caed2050 Mon Sep 17 00:00:00 2001
d11d1f4
From: Karol Herbst <kherbst@redhat.com>
d11d1f4
Date: Thu, 16 Sep 2021 13:07:55 -0400
d11d1f4
Subject: [PATCH 6/6] Revert "nouveau: Stash supported sector layout in screen"
d11d1f4
d11d1f4
This reverts commit ff534e1b5066f1c8e7969f99f40ec080eee1b907.
d11d1f4
---
d11d1f4
 src/gallium/drivers/nouveau/nouveau_screen.c | 12 ------------
d11d1f4
 src/gallium/drivers/nouveau/nouveau_screen.h |  1 -
d11d1f4
 2 files changed, 13 deletions(-)
d11d1f4
d11d1f4
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c
d11d1f4
index 192044c7fb4..5c5253097b1 100644
d11d1f4
--- a/src/gallium/drivers/nouveau/nouveau_screen.c
d11d1f4
+++ b/src/gallium/drivers/nouveau/nouveau_screen.c
d11d1f4
@@ -272,18 +272,6 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev)
d11d1f4
       } while ((start + screen->svm_cutout_size) < BITFIELD64_MASK(limit_bit));
d11d1f4
    }
d11d1f4
 
d11d1f4
-   switch (dev->chipset) {
d11d1f4
-   case 0x0ea: /* TK1, GK20A */
d11d1f4
-   case 0x12b: /* TX1, GM20B */
d11d1f4
-   case 0x13b: /* TX2, GP10B */
d11d1f4
-      screen->tegra_sector_layout = true;
d11d1f4
-      break;
d11d1f4
-   default:
d11d1f4
-      /* Xavier's GPU and everything else */
d11d1f4
-      screen->tegra_sector_layout = false;
d11d1f4
-      break;
d11d1f4
-   }
d11d1f4
-
d11d1f4
    /*
d11d1f4
     * Set default VRAM domain if not overridden
d11d1f4
     */
d11d1f4
diff --git a/src/gallium/drivers/nouveau/nouveau_screen.h b/src/gallium/drivers/nouveau/nouveau_screen.h
d11d1f4
index 9460152eff1..58bdaa2065f 100644
d11d1f4
--- a/src/gallium/drivers/nouveau/nouveau_screen.h
d11d1f4
+++ b/src/gallium/drivers/nouveau/nouveau_screen.h
d11d1f4
@@ -60,7 +60,6 @@ struct nouveau_screen {
d11d1f4
    int64_t cpu_gpu_time_delta;
d11d1f4
 
d11d1f4
    bool hint_buf_keep_sysmem_copy;
d11d1f4
-   bool tegra_sector_layout;
d11d1f4
 
d11d1f4
    unsigned vram_domain;
d11d1f4
 
d11d1f4
-- 
d11d1f4
2.31.1
d11d1f4