Fix regression with radeon si/cik cards

This commit is contained in:
Dave Airlie 2020-12-07 10:02:08 +10:00
parent b75668f04d
commit 709d0a2cd1
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff -up mesa-20.3.0/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c.dma mesa-20.3.0/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c
--- mesa-20.3.0/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c.dma 2020-12-04 03:59:53.578230900 +1000
+++ mesa-20.3.0/src/gallium/winsys/radeon/drm/radeon_drm_winsys.c 2020-12-07 10:01:07.602269090 +1000
@@ -530,6 +530,8 @@ static bool do_winsys_init(struct radeon
}
}
+ ws->info.num_se = ws->info.max_se;
+
radeon_get_drm_value(ws->fd, RADEON_INFO_MAX_SH_PER_SE, NULL,
&ws->info.max_sh_per_se);
if (ws->gen == DRV_SI) {

View file

@ -52,7 +52,7 @@ Name: mesa
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
%global ver 20.3.0 %global ver 20.3.0
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
@ -62,6 +62,8 @@ Source0: https://mesa.freedesktop.org/archive/%{name}-%{ver}.tar.xz
# Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD. # Fedora opts to ignore the optional part of clause 2 and treat that code as 2 clause BSD.
Source1: Mesa-MLAA-License-Clarification-Email.txt Source1: Mesa-MLAA-License-Clarification-Email.txt
Patch0: 0001-radeonsi-fix-regression-on-gpus-using-the-radeon-win.patch
BuildRequires: meson >= 0.45 BuildRequires: meson >= 0.45
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -591,6 +593,9 @@ popd
%endif %endif
%changelog %changelog
* Mon Dec 07 2020 Dave Airlie <airlied@redhat.com> - 20.3.0-2
- Fix regression with radeon si/cik cards
* Fri Dec 04 2020 Dave Airlie <airlied@redhat.com> - 20.3.0-1 * Fri Dec 04 2020 Dave Airlie <airlied@redhat.com> - 20.3.0-1
- Update to 20.3.0 release - Update to 20.3.0 release