1
0
forked from rpms/mesa

Backport a fix for amdgpu graphics corruption regression

https://bodhi.fedoraproject.org/updates/FEDORA-2021-c6113a5a8a
This commit is contained in:
Kalev Lember 2021-04-29 23:03:53 +02:00
parent 35267890f9
commit fc34e2dc2e
2 changed files with 43 additions and 1 deletions

36
10440.patch Normal file
View File

@ -0,0 +1,36 @@
From 25fc9a4560221ccd4f6fb6e790650968531dea11 Mon Sep 17 00:00:00 2001
From: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Date: Sat, 24 Apr 2021 16:23:43 +0200
Subject: [PATCH] amd/common: Add missing line from backport for coherency.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The line initializing the variable was missed.
Fixes: ccc4abdbf4b ("ac/gpu_info: fix more non-coherent RB and GL2 combinations")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4691
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10440>
---
src/amd/common/ac_gpu_info.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/common/ac_gpu_info.c b/src/amd/common/ac_gpu_info.c
index 47e6b8c332f..44728827197 100644
--- a/src/amd/common/ac_gpu_info.c
+++ b/src/amd/common/ac_gpu_info.c
@@ -710,6 +710,8 @@ bool ac_query_gpu_info(int fd, void *dev_p, struct radeon_info *info,
info->num_tcc_blocks = info->max_tcc_blocks;
}
+ info->tcc_rb_non_coherent = !util_is_power_of_two_or_zero(info->num_tcc_blocks);
+
info->mc_arb_ramcfg = amdinfo->mc_arb_ramcfg;
info->gb_addr_config = amdinfo->gb_addr_cfg;
if (info->chip_class >= GFX9) {
--
GitLab

View File

@ -58,7 +58,7 @@ Name: mesa
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
%global ver 21.0.3 %global ver 21.0.3
Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)} Version: %{lua:ver = string.gsub(rpm.expand("%{ver}"), "-", "~"); print(ver)}
Release: 1%{?dist} Release: 2%{?dist}
License: MIT License: MIT
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
@ -71,6 +71,9 @@ Source1: Mesa-MLAA-License-Clarification-Email.txt
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/4442 # https://gitlab.freedesktop.org/mesa/mesa/-/issues/4442
Patch0: mesa-llvm12.patch Patch0: mesa-llvm12.patch
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/4691
Patch1: 10440.patch
BuildRequires: meson >= 0.45 BuildRequires: meson >= 0.45
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -612,6 +615,9 @@ popd
%endif %endif
%changelog %changelog
* Thu Apr 29 2021 Kalev Lember <klember@redhat.com> - 21.0.3-2
- Backport a fix for amdgpu graphics corruption regression
* Thu Apr 22 2021 Pete Walter <pwalter@fedoraproject.org> - 21.0.3-1 * Thu Apr 22 2021 Pete Walter <pwalter@fedoraproject.org> - 21.0.3-1
- Update to 21.0.3 - Update to 21.0.3