From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 108311] Query buffer object support is broken on r600. Date: Wed, 10 Oct 2018 06:46:20 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1372956785==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EEA389E9B for ; Wed, 10 Oct 2018 06:46:20 +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 --===============1372956785== Content-Type: multipart/alternative; boundary="15391539800.688ccfAb.23436" Content-Transfer-Encoding: 7bit --15391539800.688ccfAb.23436 Date: Wed, 10 Oct 2018 06:46:20 +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=3D108311 Bug ID: 108311 Summary: Query buffer object support is broken on r600. Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: awesie@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 141970 --> https://bugs.freedesktop.org/attachment.cgi?id=3D141970&action=3Dedit Patch After implementing support for query buffer objects in Wine, I got a bug re= port about a regression on older AMD hardware (https://bugs.winehq.org/show_bug.cgi?id=3D45946). The root cause was a bug= in the query buffer object support for r600 in Mesa. As mentioned in the commit message for 1c9ea24a19a28e87f6038281c516287f25ad88b5, the r600 shader cannot address non-256 aligned ssbos. While that commit fixed most buffer accesses, it fai= led to fix ssbo[1], e.g. tmp_buffer. This led to random failures of the query buffer shader depending on whether we got lucky (e.g. tmp_buffer_offset was= a multiple of 256) or not. The fix is easy. Mask tmp_buffer_offset and add another constant for when we access the tmp_buffer in the shader. Patch is attached. --=20 You are receiving this mail because: You are the assignee for the bug.= --15391539800.688ccfAb.23436 Date: Wed, 10 Oct 2018 06:46:20 +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 108311
Summary Query buffer object support is broken on r600.
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter awesie@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created attachment 141970 [details]<=
/span> [review]
Patch

After implementing support for query buffer objects in Wine, I got a bug re=
port
about a regression on older AMD hardware
(https://bugs.w=
inehq.org/show_bug.cgi?id=3D45946). The root cause was a bug in
the query buffer object support for r600 in Mesa.

As mentioned in the commit message for
1c9ea24a19a28e87f6038281c516287f25ad88b5, the r600 shader cannot address
non-256 aligned ssbos. While that commit fixed most buffer accesses, it fai=
led
to fix ssbo[1], e.g. tmp_buffer. This led to random failures of the query
buffer shader depending on whether we got lucky (e.g. tmp_buffer_offset was=
 a
multiple of 256) or not.

The fix is easy. Mask tmp_buffer_offset and add another constant for when we
access the tmp_buffer in the shader. Patch is attached.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15391539800.688ccfAb.23436-- --===============1372956785== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1372956785==--