From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Thu, 27 Jun 2019 02:32:23 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1729596522==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 77C8E6E583 for ; Thu, 27 Jun 2019 02:32:23 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1729596522== Content-Type: multipart/alternative; boundary="15616027430.4ee1Ed6E.18397" Content-Transfer-Encoding: 7bit --15616027430.4ee1Ed6E.18397 Date: Thu, 27 Jun 2019 02:32:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 Bug ID: 111010 Summary: Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: felix.adrianto@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 144651 --> https://bugs.freedesktop.org/attachment.cgi?id=3D144651&action=3Dedit shader cache corruption Background: Using Cemu emulator with shader cache functionality breaks after commit 11e16ca7ce0. Screen display only solid colors with very low fps. System: AMD Ryzen 2600 RX580 Linux 5.0.9, amdgpu, mesa master How to reproduce the issue: 1. Run Cemu, enable shader cache functionality 2. Play a game then let shader cahce be generated. Game can be played norma= lly and shader can be built normally. No graphical issue is found at this stage. 3. Quit Cemu 4. Play the same game again utilizing the generated shader cache 5. Game display shows flickering solid colors as shown in this ticket attachment.=20 Expected result: Playing the same game with previously generated shader cache should display= the correct graphic instead of flickering solid colors. Can you address this issue? --=20 You are receiving this mail because: You are the assignee for the bug.= --15616027430.4ee1Ed6E.18397 Date: Thu, 27 Jun 2019 02:32:23 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 111010
Summary Cemu Shader Cache Corruption Displaying Solid Color After com= mit 11e16ca7ce0
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter felix.adrianto@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 14465=
1 [details]
shader cache corruption

Background:
Using Cemu emulator with shader cache functionality breaks after commit
11e16ca7ce0. Screen display only solid colors with very low fps.

System:
AMD Ryzen 2600
RX580
Linux 5.0.9, amdgpu, mesa master

How to reproduce the issue:
1. Run Cemu, enable shader cache functionality
2. Play a game then let shader cahce be generated. Game can be played norma=
lly
and shader can be built normally. No graphical issue is found at this stage.
3. Quit Cemu
4. Play the same game again utilizing the generated shader cache
5. Game display shows flickering solid colors as shown in this ticket
attachment.=20

Expected result:
Playing the same game with previously generated shader cache should display=
 the
correct graphic instead of flickering solid colors.

Can you address this issue?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15616027430.4ee1Ed6E.18397-- --===============1729596522== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1729596522==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Mon, 01 Jul 2019 02:31:20 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1194116622==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 146D889C1C for ; Mon, 1 Jul 2019 02:31:20 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1194116622== Content-Type: multipart/alternative; boundary="15619482790.fBEC9fEc.13915" Content-Transfer-Encoding: 7bit --15619482790.fBEC9fEc.13915 Date: Mon, 1 Jul 2019 02:31:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 --- Comment #1 from Timothy Arceri --- Thanks for the top quality bug report! Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of the cache as it was disabled for core profiles (which Cemu uses). Enabling it uncovered a bug with the interaction of our cache implementation and the separate shader objects extension. Anyway the following patch should fix the issue. https://patchwork.freedesktop.org/patch/315016/ --=20 You are receiving this mail because: You are the assignee for the bug.= --15619482790.fBEC9fEc.13915 Date: Mon, 1 Jul 2019 02:31:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 1 on bug 11101= 0 from Timothy Arceri
Thanks for the top quality bug report!

Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of the
cache as it was disabled for core profiles (which Cemu uses). Enabling it
uncovered a bug with the interaction of our cache implementation and the
separate shader objects extension.

Anyway the following patch should fix the issue.

https://patchwo=
rk.freedesktop.org/patch/315016/


You are receiving this mail because:
  • You are the assignee for the bug.
= --15619482790.fBEC9fEc.13915-- --===============1194116622== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1194116622==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Mon, 01 Jul 2019 02:32:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0153161982==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A063389C80 for ; Mon, 1 Jul 2019 02:32:13 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0153161982== Content-Type: multipart/alternative; boundary="15619483332.DFfBcce.13999" Content-Transfer-Encoding: 7bit --15619483332.DFfBcce.13999 Date: Mon, 1 Jul 2019 02:32:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 --- Comment #2 from Timothy Arceri --- (In reply to Timothy Arceri from comment #1) > Thanks for the top quality bug report! >=20 > Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of the > cache as it was disabled for core profiles (which Cemu uses). Sorry that should have been "it was disabled for compatibility profiles" --=20 You are receiving this mail because: You are the assignee for the bug.= --15619483332.DFfBcce.13999 Date: Mon, 1 Jul 2019 02:32:13 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 2 on bug 11101= 0 from Timothy Arceri
(In reply to Timothy Arceri from comment #1)
> Thanks for the top quality bug report!
>=20
> Just to be clear before 11e16ca7ce0 Cemu wasn't actually making use of=
 the
> cache as it was disabled for core profiles (which Cemu uses).

Sorry that should have been "it was disabled for compatibility profile=
s"


You are receiving this mail because:
  • You are the assignee for the bug.
= --15619483332.DFfBcce.13999-- --===============0153161982== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0153161982==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Mon, 01 Jul 2019 03:38:55 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1563534149==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E0AF3899FF for ; Mon, 1 Jul 2019 03:38:54 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1563534149== Content-Type: multipart/alternative; boundary="15619523340.bCB4c46.25687" Content-Transfer-Encoding: 7bit --15619523340.bCB4c46.25687 Date: Mon, 1 Jul 2019 03:38:54 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 --- Comment #3 from e88z4 --- I applied your patch to the latest mesa git-2042f22e28. Your patch fixed the issue. You can close this bug. Thank for responding so quickly. --=20 You are receiving this mail because: You are the assignee for the bug.= --15619523340.bCB4c46.25687 Date: Mon, 1 Jul 2019 03:38:54 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 3 on bug 11101= 0 from e88z4
I applied your patch to the latest mesa git-2042f22e28. Your p=
atch fixed the
issue. You can close this bug. Thank for responding so quickly.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15619523340.bCB4c46.25687-- --===============1563534149== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1563534149==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Mon, 01 Jul 2019 11:23:56 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1698827910==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E8A08935B for ; Mon, 1 Jul 2019 11:23:56 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1698827910== Content-Type: multipart/alternative; boundary="15619802361.dC016882.9679" Content-Transfer-Encoding: 7bit --15619802361.dC016882.9679 Date: Mon, 1 Jul 2019 11:23:56 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 e88z4 changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --=20 You are receiving this mail because: You are the assignee for the bug.= --15619802361.dC016882.9679 Date: Mon, 1 Jul 2019 11:23:56 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated = e88z4 changed bug 11101= 0
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED


You are receiving this mail because:
  • You are the assignee for the bug.
= --15619802361.dC016882.9679-- --===============1698827910== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1698827910==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111010] Cemu Shader Cache Corruption Displaying Solid Color After commit 11e16ca7ce0 Date: Thu, 11 Jul 2019 23:32:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0672477401==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 13BF66E293 for ; Thu, 11 Jul 2019 23:32:32 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0672477401== Content-Type: multipart/alternative; boundary="15628879510.43bc56b57.4730" Content-Transfer-Encoding: 7bit --15628879510.43bc56b57.4730 Date: Thu, 11 Jul 2019 23:32:31 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 --- Comment #4 from Timothy Arceri --- Fixed by: commit 3043908ccb9c7030add1f34f9a947a787949a399 Author: Timothy Arceri Date: Mon Jul 1 12:25:19 2019 +1000 mesa: save/restore SSO flag when using ARB_get_program_binary Without this the restored program will fail the pipeline validation checks when we attempt to use an SSO program. Fixes: c20fd744fef1 ("mesa: Add Mesa ARB_get_program_binary helper functions") Reviewed-by: Jordan Justen Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D111010 --=20 You are receiving this mail because: You are the assignee for the bug.= --15628879510.43bc56b57.4730 Date: Thu, 11 Jul 2019 23:32:31 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 4 on bug 11101= 0 from Timothy Arceri
Fixed by:

commit 3043908ccb9c7030add1f34f9a947a787949a399
Author: Timothy Arceri <tar=
ceri@itsqueeze.com>
Date:   Mon Jul 1 12:25:19 2019 +1000

    mesa: save/restore SSO flag when using ARB_get_program_binary

    Without this the restored program will fail the pipeline validation
    checks when we attempt to use an SSO program.

    Fixes: c20fd744fef1 ("mesa: Add Mesa ARB_get_program_binary helper
functions")

    Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
    Bugzilla: https://bugs.freedesktop.org/show_bug.=
cgi?id=3D111010


You are receiving this mail because:
  • You are the assignee for the bug.
= --15628879510.43bc56b57.4730-- --===============0672477401== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0672477401==--