From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97338] Black squares in the Spec Ops: The Line chapter select screen Date: Fri, 02 Sep 2016 12:54:40 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1622329245==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 3962D6EA89 for ; Fri, 2 Sep 2016 12:54:40 +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 --===============1622329245== Content-Type: multipart/alternative; boundary="14728208801.33f9B769E.32409"; charset="UTF-8" --14728208801.33f9B769E.32409 Date: Fri, 2 Sep 2016 12:54:40 +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=3D97338 --- Comment #3 from Nicolai H=C3=A4hnle --- Created attachment 126172 --> https://bugs.freedesktop.org/attachment.cgi?id=3D126172&action=3Dedit Problematic fragment shader Okay, so here's a bit more detail of what is happening: the attached fragme= nt shader (shader object 31) samples a 2D vector from PSampler2 (texture object 3153) and does some computations on it involving inversesqrt, under the assumption that the dot product of the vector is <=3D 1. This is false: loo= king at level 0 of texture 3153 reveals e.g. a unorm value (142, 255) at texel 155,263. The likely cause here is that this is a port from D3D, which specifies that= rsq should take the absolute value of its argument, to GLSL, which says that inversesqrt is undefined for values <=3D 0. --=20 You are receiving this mail because: You are the assignee for the bug.= --14728208801.33f9B769E.32409 Date: Fri, 2 Sep 2016 12:54:40 +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

Comment= # 3 on bug 97338<= /a> from Nicolai H=C3=A4hnle
Created attachment 1=
26172 [details]
Problematic fragment shader

Okay, so here's a bit more detail of what is happening: the attached fragme=
nt
shader (shader object 31) samples a 2D vector from PSampler2 (texture object
3153) and does some computations on it involving inversesqrt, under the
assumption that the dot product of the vector is <=3D 1. This is false: =
looking
at level 0 of texture 3153 reveals e.g. a unorm value (142, 255) at texel
155,263.

The likely cause here is that this is a port from D3D, which specifies that=
 rsq
should take the absolute value of its argument, to GLSL, which says that
inversesqrt is undefined for values <=3D 0.


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