From fbd143696ee9b4aaa7a5e6d0eacda7ccfa62bb24 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 12 Oct 2021 11:51:03 -0700 Subject: [PATCH] Backport MR#13231 and revert MR#3724 to fix Tegra (kherbst) This should fix graphics on Tegra (inc. Jetson Nano). Patches provided by Karol Herbst consist of a backport of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13231 and a reversion of https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3724 see https://bugzilla.redhat.com/show_bug.cgi?id=1989726#c43 . --- mesa.spec | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/mesa.spec b/mesa.spec index 6ab0dd8..01a291d 100644 --- a/mesa.spec +++ b/mesa.spec @@ -74,6 +74,20 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt Patch0001: gallium-llvm13.patch Patch0002: crocus-fixes.diff + +# Patches from Karol Herbst to make Tegra work again: +# https://bugzilla.redhat.com/show_bug.cgi?id=1989726#c46 +# see also: +# https://gitlab.freedesktop.org/mesa/mesa/-/issues/5399 +# First two are https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13231 +Patch0003: 0001-tegra-Use-private-reference-count-for-sampler-views.patch +Patch0004: 0002-tegra-Use-private-reference-count-for-resources.patch +# Last four revert https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3724 +Patch0005: 0003-Revert-nouveau-Use-format-modifiers-in-buffer-alloca.patch +Patch0006: 0004-Revert-nouveau-no-modifier-the-invalid-modifier.patch +Patch0007: 0005-Revert-nouveau-Use-DRM_FORMAT_MOD_NVIDIA_BLOCK_LINEA.patch +Patch0008: 0006-Revert-nouveau-Stash-supported-sector-layout-in-scre.patch + BuildRequires: meson >= 0.45 BuildRequires: gcc BuildRequires: gcc-c++