From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94459] FLT_TO_INT rounding issues on pre R800 cards Date: Wed, 09 Mar 2016 09:23:36 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1209166205==" 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 DA6D56E867 for ; Wed, 9 Mar 2016 09:23:36 +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 --===============1209166205== Content-Type: multipart/alternative; boundary="14575154160.682C7Ed.1999"; charset="UTF-8" --14575154160.682C7Ed.1999 Date: Wed, 9 Mar 2016 09:23:36 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94459 Bug ID: 94459 Summary: FLT_TO_INT rounding issues on pre R800 cards Product: Mesa Version: unspecified Hardware: All OS: All Status: NEW Severity: minor Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: siro@das-labor.org QA Contact: dri-devel@lists.freedesktop.org Running WINE tests with Gallium Nine enabled I found the following test to fail on pre R800 cards. The failing test is from wine d3d9/tests/visual.c test_mova(). It can be found here: https://source.winehq.org/ident?_i=test_mova&_remember=1 To issue doesn't exists on radeonsi, softpipe and R800+. The problem seems to be TGSI_OPCODE_ARR that should round on FLT_TO_INT, but pre R800 cards truncate instead. This might result in wrong addressing, as TGSI_OPCODE_ARR is expected to round. If the card doesn't support rounding on FLT_TO_INT, r600 driver should insert a rounding instruction. Tested with latest mesa git on RV770. -- You are receiving this mail because: You are the assignee for the bug. --14575154160.682C7Ed.1999 Date: Wed, 9 Mar 2016 09:23:36 +0000 MIME-Version: 1.0 Content-Type: text/html
Bug ID 94459
Summary FLT_TO_INT rounding issues on pre R800 cards
Product Mesa
Version unspecified
Hardware All
OS All
Status NEW
Severity minor
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter siro@das-labor.org
QA Contact dri-devel@lists.freedesktop.org

Running WINE tests with Gallium Nine enabled I found the following test to fail
on pre R800 cards.
The failing test is from wine d3d9/tests/visual.c test_mova().
It can be found here: https://source.winehq.org/ident?_i=test_mova&_remember=1

To issue doesn't exists on radeonsi, softpipe and R800+.

The problem seems to be TGSI_OPCODE_ARR that should round on FLT_TO_INT, but
pre R800 cards truncate instead.
This might result in wrong addressing, as TGSI_OPCODE_ARR is expected to round.
If the card doesn't support rounding on FLT_TO_INT, r600 driver should insert a
rounding instruction.

Tested with latest mesa git on RV770.


You are receiving this mail because:
  • You are the assignee for the bug.
--14575154160.682C7Ed.1999-- --===============1209166205== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1209166205==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94459] FLT_TO_INT rounding issues on pre R800 cards Date: Wed, 09 Mar 2016 11:33:49 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0740689137==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A79236E01B for ; Wed, 9 Mar 2016 11:33:49 +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 --===============0740689137== Content-Type: multipart/alternative; boundary="14575232290.A6b10b0B7.30811"; charset="UTF-8" --14575232290.A6b10b0B7.30811 Date: Wed, 9 Mar 2016 11:33:49 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94459 --- Comment #1 from Patrick Rudolph --- Created attachment 122172 --> https://bugs.freedesktop.org/attachment.cgi?id=122172&action=edit patch r600_shader.c to insert a ALU_OP1_RNDNE instruction on pre r8xx cards for TGSI_OPCODE_ARR -- You are receiving this mail because: You are the assignee for the bug. --14575232290.A6b10b0B7.30811 Date: Wed, 9 Mar 2016 11:33:49 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 1 on bug 94459 from
Created attachment 122172 [details] [review]
patch r600_shader.c to insert a ALU_OP1_RNDNE instruction on pre r8xx cards for
TGSI_OPCODE_ARR


You are receiving this mail because:
  • You are the assignee for the bug.
--14575232290.A6b10b0B7.30811-- --===============0740689137== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0740689137==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94459] FLT_TO_INT rounding issues on pre R800 cards Date: Wed, 09 Mar 2016 13:49:46 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2124279393==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id CBC856E0FF for ; Wed, 9 Mar 2016 13:49:47 +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 --===============2124279393== Content-Type: multipart/alternative; boundary="14575313870.6C6DE.30246"; charset="UTF-8" --14575313870.6C6DE.30246 Date: Wed, 9 Mar 2016 13:49:47 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94459 --- Comment #2 from Roland Scheidegger --- The code in question isn't used by anything non-r600/r700, thus a switch isn't warranted. (I think it would look nicer if the arl/arr cases were merged and use a conditional to select the rounding instruction too.) -- You are receiving this mail because: You are the assignee for the bug. --14575313870.6C6DE.30246 Date: Wed, 9 Mar 2016 13:49:47 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 2 on bug 94459 from
The code in question isn't used by anything non-r600/r700, thus a switch isn't
warranted.
(I think it would look nicer if the arl/arr cases were merged and use a
conditional to select the rounding instruction too.)


You are receiving this mail because:
  • You are the assignee for the bug.
--14575313870.6C6DE.30246-- --===============2124279393== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2124279393==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94459] FLT_TO_INT rounding issues on pre R800 cards Date: Wed, 18 Sep 2019 19:21:11 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1594253657==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9298C6FA8F for ; Wed, 18 Sep 2019 19:21:11 +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 --===============1594253657== Content-Type: multipart/alternative; boundary="15688344712.168755dB.27151" Content-Transfer-Encoding: 7bit --15688344712.168755dB.27151 Date: Wed, 18 Sep 2019 19:21:11 +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=3D94459 GitLab Migration User changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |MOVED --- Comment #3 from GitLab Migration User --- -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this = link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/579. --=20 You are receiving this mail because: You are the assignee for the bug.= --15688344712.168755dB.27151 Date: Wed, 18 Sep 2019 19:21:11 +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 GitLab Migration User changed bug 94459<= /a>
What Removed Added
Status NEW RESOLVED
Resolution --- MOVED

Comment= # 3 on bug 94459<= /a> from GitLab Migration User
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this =
link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/579.


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