Skip to contentSkip to conversation

Regression in 10.5.1 causes flickering/artifacting in a particular video game

Bug 89699 [email protected] 1 participant 27 messages Mar 21, 2015 – Aug 5, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Other                       |Drivers/Gallium/radeonsi
           Assignee|[email protected]. |[email protected]
                   |org                         |.org
         QA Contact|[email protected]. |[email protected]
                   |org                         |.org

--- Comment #3 from Michel Dänzer <[email protected]> --- Does it still happen with current Mesa Git master? If so, can you bisect?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #4 from [email protected] ---
(In reply to Michel Dänzer from comment #3)

Quoted 1 line

Does it still happen with current Mesa Git master? If so, can you bisect?

The mesa-git package available in the arch linux user repository is not working at the moment so this may take a while. I found this
https://wiki.archlinux.org/index.php/Bisecting_bugs essentially do I just follow these steps? This is a bit out of my scope of knowledge.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #5 from Michel Dänzer <[email protected]> --- (In reply to andre35822 from comment #4)

Quoted 2 lines

I found this https://wiki.archlinux.org/index.php/Bisecting_bugs essentially do I just follow these steps?

Yes.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #6 from [email protected] ---
(In reply to Michel Dänzer from comment #5)

Quoted 5 lines

(In reply to andre35822 from comment #4)

Quoted 2 lines

I found this https://wiki.archlinux.org/index.php/Bisecting_bugs essentially do I just follow these steps?

Yes.

Alright I just, I do not have enough knowledge to follow that tutorial I tried and I am just failing miserably and I can't understand what I am doing. I upgraded my system to mesa-git (10.6-devel) and I still have the issue so the issue IS present on 10.6. Hopefully there is someone at the mesa team that plays games and can test CSGO on AMD hardware?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #7 from Arek Ruśniak <[email protected]> ---
Andre ff you use yaourt grab pkgs by: yaourt -G mesa-git and yaourt -G lib32-mesa-git, and make it and install (cd mesa-git; makepkg -si; and the same for lib32-mesa-git)
CS GO is 32bit (i belive) app so you need bisect only lib32-mesa-git:
Try commit:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ef7e0b39a24966526b102643523feac765771842
It's first one I can build against llvm-3.6, it's probably old enough to run CS:GO without issues but you have to be sure:

$cd lib32-mesa-git
$cd src/mesa
$git checkout ef7e0b39a24966526b102643523feac765771842 $cd ../..
$makepkg -efsi
//Try CS:GO and if it's ok, let's bisect:
$cd src/mesa
$git bisect start
//git bisect good _commit_when_CSGO_ok
$git bisect good ef7e0b39a24966526b102643523feac765771842 //git bisect bad _commit_when_you_see_issue
//you may use mesa 10.5.1 release note:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=11c0ff60ef19cca84452aa989fb8bb25127473e0
$git bisect bad 11c0ff60ef19cca84452aa989fb8bb25127473e0 //now you can see info about need check some commit $cd ../..
$makepkg -efsi
//and now try CS:GO
//if CS GO has issues still
$cd src/mesa
$git bisect bad
//or if CS GO runs without issues
$cd src/mesa
$git bisect good
-->GOTO //now you can see info about need check some commit

//you need check another commit again and again... and again until it gives to you "first bad commit" and this "first bad commit" is wanted by Michel

I hope it help a bit.
If ef7e0b39a24966526b102643523feac765771842 is bad, you need llvm-3.5 and start from older mesa commit.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #8 from [email protected] ---
(In reply to Arek Ruśniak from comment #7)

Quoted 37 lines

Andre ff you use yaourt grab pkgs by: yaourt -G mesa-git and yaourt -G lib32-mesa-git, and make it and install (cd mesa-git; makepkg -si; and the same for lib32-mesa-git)
CS GO is 32bit (i belive) app so you need bisect only lib32-mesa-git:
Try commit:
http://cgit.freedesktop.org/mesa/mesa/commit/
?id=ef7e0b39a24966526b102643523feac765771842
It's first one I can build against llvm-3.6, it's probably old enough to run CS:GO without issues but you have to be sure:

$cd lib32-mesa-git
$cd src/mesa
$git checkout ef7e0b39a24966526b102643523feac765771842 $cd ../..
$makepkg -efsi
//Try CS:GO and if it's ok, let's bisect:
$cd src/mesa
$git bisect start
//git bisect good _commit_when_CSGO_ok
$git bisect good ef7e0b39a24966526b102643523feac765771842 //git bisect bad _commit_when_you_see_issue
//you may use mesa 10.5.1 release note:
http://cgit.freedesktop.org/mesa/mesa/commit/
?id=11c0ff60ef19cca84452aa989fb8bb25127473e0
$git bisect bad 11c0ff60ef19cca84452aa989fb8bb25127473e0 //now you can see info about need check some commit $cd ../..
$makepkg -efsi
//and now try CS:GO
//if CS GO has issues still
$cd src/mesa
$git bisect bad
//or if CS GO runs without issues
$cd src/mesa
$git bisect good
-->GOTO //now you can see info about need check some commit

Quoted 6 lines

//you need check another commit again and again... and again until it gives to you "first bad commit" and this "first bad commit" is wanted by Michel

I hope it help a bit.
If ef7e0b39a24966526b102643523feac765771842 is bad, you need llvm-3.5 and start from older mesa commit.

Alright so I decided to give this a try since I have some time. I downloaded the mesa-git and lib32-mesa-git tarballs manually and ran makepkg -s then I went into src/mesa and used that command to put in the commit and went back to the main directory and did makepkg -s instead of makepkg -efsi because I don't know what that does...I believe -i installs it but I would prefer it to make .tar.xz packages so I can remove this version using pacman....I am just afraid to screw up my system. So I did this for mesa and lib32-mesa to ensure nothing would go wrong, and it seemed to have built mesa-git 10.6.0_devel....

Alright, I did sudo pacman -U to install the .tar.xz packages that were built logged out/in and loaded up CSGO. The graphical issues I have been talking about are still there. I went into /src/mesa did bit bisect start and then git bisect bad and put the ef7e0b39a24966526b102643523feac765771842 commit.

I honestly have no clue what I am doing but I then did the same steps initially of building the package but did commit cb154bb22116910c462f7a83f4401bd01e15c34d which is a commit for 10.4.7 since the entire 10.4.x series were fine with CSGO and only noticed issues since 10.5 came out. I guess ill move up from 10.4.7 and there? Again I did makepkg -s and the .tar.xz that were made were the same ones as before. I am confused if I am actually doing anything here.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #9 from [email protected] ---
I don't have the skill to this. Is it possible I could purchase the game for one of the developers through Steam and they can try and solve this?

Offtopic but I think this is an important field, games need to be tested and make sure they work. Granted majority of distros arent using 10.5 however eventually they will catch up and if the bugfixes haven't been solved this could prevent linux users from playing games, forced to go back into windows to (what I am experiencing now) and could even prevent new users from transitioning to Linux.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #10 from [email protected] ---
Certain Mesa devs are able to get this game for free, as well as other Valve games. Hopefully this may help solve the bug as someone working in Mesa can use the game on their machines?

http://lists.freedesktop.org/archives/dri-devel/2015-April/081045.html

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Michel Dänzer
#9 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #11 from Sergio Pais <[email protected]> --- Hello,

The following is the result of bisecting:

0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0 is the first bad commit commit 0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0

Author: Marek Olšák <[email protected]>
Date:   Sun Jan 4 22:01:43 2015 +0100

radeonsi: only set BC_OPTIMIZE_DISABLE when necessary

SPI_PS_IN_CONTROL is moved into the SPI mapping state.

:040000 040000 1cf87184549eeb5432cc02fbb352c10f873ffd9f
8d8f7873bdcaf67167ec744265d008306e53d901 M src

http://cgit.freedesktop.org/mesa/mesa/commit/?id=0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #12 from Marek Olšák <[email protected]> --- (In reply to Sergio Pais from comment #11)

Quoted 13 lines

Hello,

The following is the result of bisecting:

0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0 is the first bad commit commit 0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0

Author: Marek Olšák <[email protected]>
Date:   Sun Jan 4 22:01:43 2015 +0100

radeonsi: only set BC_OPTIMIZE_DISABLE when necessary

SPI_PS_IN_CONTROL is moved into the SPI mapping state.

Quoted 8 lines

:040000 040000 1cf87184549eeb5432cc02fbb352c10f873ffd9f
8d8f7873bdcaf67167ec744265d008306e53d901 M src

http://cgit.freedesktop.org/mesa/mesa/commit/
?id=0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0

Sorry to bring you bad news, but that commit was reverted soon after it was committed.

Marek

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #13 from Sergio Pais <[email protected]> ---
After I posted the comment I noticed it was reverted. I compiled 82b7ee62fc4bbe014f61a60bccf694b706c7247d and the artifacts are still present. There might be two different changes that cause a similar bug? I'll try to narrow it down.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #14 from Sergio Pais <[email protected]> --- Hello,

By reverting 0543630d0b0d9d9f6eefbc14fbd3385d4de37ba0:

18a30c97780bef9c498db915ba5e7debe832f576 NOT OK 11b76369f53e064bef1bad629f957373c0e93b6c NOT OK edf18da85dd3b1865c4faaba650a8fa371b7103c NOT OK Mostly shadows flickering 73c2b0d18c51459697d8ec194ecfc4438c98c139 NOT OK Mostly shadows flickering 0aecf9e2d18804d83473a5cc142297c1bbae04f8 OK 2bfe9d4538693ebad3c0330a92e432c6c4c5afd3 Does not compile for me d217819e7872e1017260f525caff38e6e49e714d OK

73c2b0d18c51459697d8ec194ecfc4438c98c139 seems to the the first bad commit.

Hope this helps.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #15 from [email protected] ---
So I came to check out if there was anything new and I see that there are some of you working on fixing the bug? Thank You! I really appreciate it as I have no clue how to do this on my own. I don't know what else I can do to help, only that (you guys probably know this already) the bug is still present on Mesa 10.6...just thought I would let you know in case you guys didnt (you probably do).

Thanks a lot again for looking into the issue.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#15 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #17 from Max Qia <[email protected]> --- Created attachment 117072
--> https://bugs.freedesktop.org/attachment.cgi?id=117072&action=edit
bad frame

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#16 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #18 from Max Qia <[email protected]> --- Created attachment 117073
--> https://bugs.freedesktop.org/attachment.cgi?id=117073&action=edit
good frame

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#17 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

Marek Olšák <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #117073|text/plain                  |image/jpeg
          mime type|                            |
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#18 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #19 from Michel Dänzer <[email protected]> --- (In reply to Sergio Pais from comment #14)

Quoted 2 lines

73c2b0d18c51459697d8ec194ecfc4438c98c139 seems to the the first bad commit.

That one has been reverted as well. Can you try bisecting again with that one reverted?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#19 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

Max Qia <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #20 from Max Qia <[email protected]> --- How would you revert a commit then bisect?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author Reviewed-by Michel Dänzer
#20 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #21 from Maxqia <[email protected]> --- Did some Bisecting and I Got ...

67a77ecdec3ba701eb63783535c43abf6eb1ab29 is the first bad commit commit 67a77ecdec3ba701eb63783535c43abf6eb1ab29

Author: Marek Olšák <[email protected]>
Date:   Sun Jan 4 22:16:53 2015 +0100

radeonsi: don't use TC L2 for updating descriptors on SI

It's causing problems, because we mix uncached CP DMA with cached
WRITE_DATA
when updating the same memory.

The solution for SI is to use uncached access here, because CP DMA doesn't support cached access.

CIK will be handled in the next patch.

:040000 040000 76fed826a37a921280bbb3c30b27921b58a143db
6a5d816cf39df3265bd9a672cecb5ab94ab97195 M src

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#21 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #22 from Maxqia <[email protected]> --- Created attachment 117219
--> https://bugs.freedesktop.org/attachment.cgi?id=117219&action=edit
Revert TC Patch

Seems like reverting all TC commits fixes the issue ... Tested the patch on Master

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#22 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #23 from Marek Olšák <[email protected]> --- What happens if you change SI_NUM_CONTEXTS to 32 in src/gallium/drivers/radeonsi/si_descriptors.c ?

Do you have Tahiti, Pitcairn, or something else?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#23 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #24 from Marek Olšák <[email protected]> ---
We can't revert it, because it would cause other issues. Your patch is wrong, because it reverts a lot of unrelated things too.

I think the proper fix is to use the constant engine. Or upload descriptors without CP_DMA and WRITE_DATA, only using the CPU to upload them.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#24 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #25 from Maxqia <[email protected]> --- Created attachment 117229
--> https://bugs.freedesktop.org/attachment.cgi?id=117229&action=edit
make log

I have a Tahiti (7950) GPU for your information. When I set SI_NUM_CONTEXTS to 32 in si_descriptors.c, I get multiple compile errors. I have tried to set it with define SI_NUM_CONTEXTS 32, define SI_NUM_CONTEXTS=32, and SI_NUM_CONTEXTS=32.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#25 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #26 from Maxqia <[email protected]> --- Nevermind, I got it to compile with 'SI_NUM_CONTEXTS=32;', but it seems to have done nothing to help the artifacting/glitching.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#26 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

--- Comment #27 from [email protected] ---
I would like to notify everyone that I have tried the latest mesa available from git (both mesa and lib32-mesa from git, via the AUR on Arch Linux) and there seems to be no artificating! I do not know what you guys did but it seemed to have worked.

Thank you so much, I appreciate it!

I downloaded mesa-demo from official ach repo, I am not aware if that is okay but when I run glxinfo | grep "OpenGL version" it shows

OpenGL version string: 3.0 Mesa 11.0.0-devel (git-d6d7515)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#27 lore raw
In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=89699

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #28 from Michel Dänzer <[email protected]> --- Probably fixed by
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0528118dfb1af00e7d08cdb637191b80c14c2ba
.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel