[RADV/LLVM/ACO/Regression] After mesa commit a3dc7fff all games stucks at start
For example, when I launch Rise of the Tomb Raider I see only window with black content and nothing more.
- kernel 5.7.0 rc3
- GPU Radeon VII
[mikhail@localhost git]$ git bisect start
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
[mikhail@localhost git]$
[mikhail@localhost mesa]$ git bisect start
[mikhail@localhost mesa]$ git bisect good 9392ddab4399d796fdf37602f586965ec17f2b2a
[mikhail@localhost mesa]$ git bisect bad 3fac55ce0d066d767d6c6c8308f79d0c3e566ec0
Bisecting: 47 revisions left to test after this (roughly 6 steps)
[efc9ab6dcced7b8afc8e9dd9f201124ca8d00797] pan/mdg: Pass through some types from scheduling
[mikhail@localhost mesa]$ git bisect bad
Bisecting: 23 revisions left to test after this (roughly 5 steps)
[fbbe3d4b75be9e6ac834feda5f5ce12af088b6be] pan/bi: Use common IR indices
[mikhail@localhost mesa]$ git bisect bad
Bisecting: 11 revisions left to test after this (roughly 4 steps)
[298e247776309b4444b4c3ac26872fc1f694568c] winsys/svga: Optionally avoid caching buffer maps
$ git bisect good
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[e2fbba7720a9bcafc8ca1169697e1b985e84e6f1] ac/surface: move non-displayable DCC to the end of the buffer
[mikhail@localhost mesa]$ git bisect bad
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[3dc2ccc14c0e035368fea6ae3cce8c481f3c4ad2] ac/surface: replace RADEON_SURF_OPTIMIZE_FOR_SPACE with !FORCE_SWIZZLE_MODE
[mikhail@localhost mesa]$ git bisect good
Bisecting: 0 revisions left to test after this (roughly 1 step)
[a3dc7fffbb7be0f1b2ac478b16d3acc5662dff66] ac/surface: don't compute DCC if it's unsupported by DCN on gfx9+
[mikhail@localhost mesa]$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[5d785f99b75c92220205862e7d6d4d4a2f503143] ac/surface: match get_display_flag() with expectations for is_displayable
[mikhail@localhost mesa]$ git bisect good
a3dc7fffbb7be0f1b2ac478b16d3acc5662dff66 is the first bad commit
commit a3dc7fffbb7be0f1b2ac478b16d3acc5662dff66
Author: Marek Olšák <marek.olsak@amd.com>
Date: Fri Apr 17 20:27:32 2020 -0400
ac/surface: don't compute DCC if it's unsupported by DCN on gfx9+
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4697>
src/amd/common/ac_surface.c | 38 +++++++++++++++++++++++--------
src/gallium/drivers/radeonsi/si_texture.c | 13 +----------
2 files changed, 30 insertions(+), 21 deletions(-)
Important note! For reproducing this issue computer should be log in with broken mesa and Wayland gnome-session.
If the game will be launched after mesa upgrade without relogin in gnome-session the issue not reproduced.