From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Sat, 22 Aug 2015 13:53:12 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1789912581==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 5C6416E0DC for ; Sat, 22 Aug 2015 06:53:12 -0700 (PDT) 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 --===============1789912581== Content-Type: multipart/alternative; boundary="1440251592.6731EC0.31078"; charset="UTF-8" --1440251592.6731EC0.31078 Date: Sat, 22 Aug 2015 13:53:12 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 Bug ID: 91725 Summary: R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Product: Mesa Version: git Hardware: x86 (IA32) OS: All Status: NEW Severity: major Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: ikalvachev@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 117861 --> https://bugs.freedesktop.org/attachment.cgi?id=117861&action=edit The shader causing the problem as TGSI and R600 bytecode. Created by Nine. The exact error message is: sb/sb_sched.cpp:251:unreserve: Assertion `rp[cycle][chan] == sel && uc[cycle][chan]' failed. It doesn't trigger if I replay with "R600_DEBUG=nobs". My hardware is Radeon HD5670 (Redwood). I have attached part of the log created by "R600_DEBUG=vs,ps" containing the TGSI code and the unoptimized R600 bytecode. The bug is reproduced by replaying d3d9 trace of the game "The Forest". The trace file has been uploaded to ixit ftp server. You need d3dretrace.exe (from apitrace compiled for windows) and wine. It is preferable is wine have ixit Nine patch and mesa-git with Nine enabled. The bug is reproduced by both Nine state tracker and by the OpenGL one (when using vanilla wined3d opengl wrapper). Since the the OpenGL TGSI code is different, I'm attaching it too. If you need more info, feel free to ask me. -- You are receiving this mail because: You are the assignee for the bug. --1440251592.6731EC0.31078 Date: Sat, 22 Aug 2015 13:53:12 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
Bug ID 91725
Summary R600 asserts in sb_shed.c:251 during Shader Backend optimization pass.
Product Mesa
Version git
Hardware x86 (IA32)
OS All
Status NEW
Severity major
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter ikalvachev@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 117861 [details]
The shader causing the problem as TGSI and R600 bytecode. Created by Nine.

The exact error message is:
sb/sb_sched.cpp:251:unreserve: Assertion `rp[cycle][chan] == sel &&
uc[cycle][chan]' failed.

It doesn't trigger if I replay with "R600_DEBUG=nobs".
My hardware is Radeon HD5670 (Redwood).

I have attached part of the log created by "R600_DEBUG=vs,ps" containing the
TGSI code and the unoptimized R600 bytecode.

The bug is reproduced by replaying d3d9 trace of the game "The Forest". The
trace file has been uploaded to ixit ftp server. You need d3dretrace.exe (from
apitrace compiled for windows) and wine. It is preferable is wine have ixit
Nine patch and mesa-git with Nine enabled.

The bug is reproduced by both Nine state tracker and  by the OpenGL one (when
using vanilla wined3d opengl wrapper). Since the the OpenGL TGSI code is
different, I'm attaching it too.

If you need more info, feel free to ask me.


You are receiving this mail because:
  • You are the assignee for the bug.
--1440251592.6731EC0.31078-- --===============1789912581== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1789912581==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Sat, 22 Aug 2015 13:55:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1435254369==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 76AFB6E122 for ; Sat, 22 Aug 2015 06:55:03 -0700 (PDT) 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 --===============1435254369== Content-Type: multipart/alternative; boundary="1440251703.C6Ff0.31536"; charset="UTF-8" --1440251703.C6Ff0.31536 Date: Sat, 22 Aug 2015 13:55:03 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 --- Comment #1 from iive --- Created attachment 117862 --> https://bugs.freedesktop.org/attachment.cgi?id=117862&action=edit The shader causing the problem as TGSI and R600 bytecode. Created by OpenGL -- You are receiving this mail because: You are the assignee for the bug. --1440251703.C6Ff0.31536 Date: Sat, 22 Aug 2015 13:55:03 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 1 on bug 91725 from
Created attachment 117862 [details]
The shader causing the problem as TGSI and R600 bytecode. Created by OpenGL


You are receiving this mail because:
  • You are the assignee for the bug.
--1440251703.C6Ff0.31536-- --===============1435254369== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1435254369==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Sun, 23 Aug 2015 01:13:04 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0287600279==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 11EA489428 for ; Sat, 22 Aug 2015 18:13:04 -0700 (PDT) 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 --===============0287600279== Content-Type: multipart/alternative; boundary="1440292384.5fAd01.7576"; charset="UTF-8" --1440292384.5fAd01.7576 Date: Sun, 23 Aug 2015 01:13:04 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 Vadim Girlin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |glenn.kennard@gmail.com --- Comment #2 from Vadim Girlin --- Adding Glenn, hopefully he can solve this... Looks like he already knows more about that stuff than I remember about it. -- You are receiving this mail because: You are the assignee for the bug. --1440292384.5fAd01.7576 Date: Sun, 23 Aug 2015 01:13:04 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 91725
What Removed Added
CC   glenn.kennard@gmail.com

Comment # 2 on bug 91725 from
Adding Glenn, hopefully he can solve this... Looks like he already knows more
about that stuff than I remember about it.


You are receiving this mail because:
  • You are the assignee for the bug.
--1440292384.5fAd01.7576-- --===============0287600279== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0287600279==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Sun, 23 Aug 2015 12:55:37 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0822886835==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A328B6E16E for ; Sun, 23 Aug 2015 05:55:37 -0700 (PDT) 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 --===============0822886835== Content-Type: multipart/alternative; boundary="1440334537.71A6F0.3847"; charset="UTF-8" --1440334537.71A6F0.3847 Date: Sun, 23 Aug 2015 12:55:37 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 --- Comment #3 from iive --- Created attachment 117875 --> https://bugs.freedesktop.org/attachment.cgi?id=117875&action=edit The shader causing the problem as original D3D code and TGSI created by Nine. Since the shader is having some undefined values, there is a chance the original D3D shader is not entirely correct. That's why I've extracted it (NINE_DEBUG=shader NINE_TGSI_DUMP=1). -- You are receiving this mail because: You are the assignee for the bug. --1440334537.71A6F0.3847 Date: Sun, 23 Aug 2015 12:55:37 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 3 on bug 91725 from
Created attachment 117875 [details]
The shader causing the problem as original D3D code and TGSI created by Nine.

Since the shader is having some undefined values, there is a chance the
original D3D shader is not entirely correct. That's why I've extracted it
(NINE_DEBUG=shader NINE_TGSI_DUMP=1).


You are receiving this mail because:
  • You are the assignee for the bug.
--1440334537.71A6F0.3847-- --===============0822886835== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0822886835==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Fri, 28 Aug 2015 23:44:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0384593075==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B62BB6E3D7 for ; Fri, 28 Aug 2015 16:44:13 -0700 (PDT) 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 --===============0384593075== Content-Type: multipart/alternative; boundary="1440805453.Ceb4Cc1.27060"; charset="UTF-8" --1440805453.Ceb4Cc1.27060 Date: Fri, 28 Aug 2015 23:44:13 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 --- Comment #4 from Glenn Kennard --- Commits 608c7b a83022 36f199 should fix the crashes in this trace -- You are receiving this mail because: You are the assignee for the bug. --1440805453.Ceb4Cc1.27060 Date: Fri, 28 Aug 2015 23:44:13 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 4 on bug 91725 from
Commits 608c7b a83022 36f199 should fix the crashes in this trace


You are receiving this mail because:
  • You are the assignee for the bug.
--1440805453.Ceb4Cc1.27060-- --===============0384593075== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============0384593075==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 91725] R600 asserts in sb_shed.c:251 during Shader Backend optimization pass. Date: Sat, 29 Aug 2015 08:25:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1069513072==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 99CC16E018 for ; Sat, 29 Aug 2015 01:25:48 -0700 (PDT) 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 --===============1069513072== Content-Type: multipart/alternative; boundary="1440836748.2a1BC0.11065"; charset="UTF-8" --1440836748.2a1BC0.11065 Date: Sat, 29 Aug 2015 08:25:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=91725 iive changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from iive --- Yes, these commits fix all r600 issues in the sample. Don't forget to backport them to the stable branches. -- You are receiving this mail because: You are the assignee for the bug. --1440836748.2a1BC0.11065 Date: Sat, 29 Aug 2015 08:25:48 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 91725
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Comment # 5 on bug 91725 from
Yes, these commits fix all r600 issues in the sample.
Don't forget to backport them to the stable branches.


You are receiving this mail because:
  • You are the assignee for the bug.
--1440836748.2a1BC0.11065-- --===============1069513072== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============1069513072==--