From: bugzilla-daemon@freedesktop.org Subject: [Bug 85376] Dolphin emulator has bad colors Date: Thu, 20 Nov 2014 02:49:08 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1667306344==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 081546F613 for ; Wed, 19 Nov 2014 18:49:08 -0800 (PST) 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 --===============1667306344== Content-Type: multipart/alternative; boundary="1416451747.adc41c50.23758"; charset="UTF-8" --1416451747.adc41c50.23758 Date: Thu, 20 Nov 2014 02:49:07 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=85376 Matthew Woehlke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mw_triad@users.sourceforge. | |net --- Comment #15 from Matthew Woehlke --- Not sure if this is fixed or not, but I was able to isolate the GLSL where things go sideways. This is broken: prev.rgb = (prev.rgb * (256 - ifog) + cfogcolor.rgb * ifog) >> 8; The above apparently should have the same effect as the following, which works correctly: prev.r = (prev.r * (256 - ifog) + cfogcolor.r * ifog) >> 8; prev.g = (prev.g * (256 - ifog) + cfogcolor.g * ifog) >> 8; prev.b = (prev.b * (256 - ifog) + cfogcolor.b * ifog) >> 8; So something is going sideways distributing the above operations across vector components. Seems reasonable to suspect code generation. I tried splitting just the bitshift step with no effect, so my guess is that at least multiplying an int3 by an int is doing something wrong. -- You are receiving this mail because: You are the assignee for the bug. --1416451747.adc41c50.23758 Date: Thu, 20 Nov 2014 02:49:07 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" changed bug 85376
What Removed Added
CC   mw_triad@users.sourceforge.net

Comment # 15 on bug 85376 from
Not sure if this is fixed or not, but I was able to isolate the GLSL where
things go sideways.

This is broken:

    prev.rgb = (prev.rgb * (256 - ifog) + cfogcolor.rgb * ifog) >> 8;

The above apparently should have the same effect as the following, which works
correctly:

    prev.r = (prev.r * (256 - ifog) + cfogcolor.r * ifog) >> 8;
    prev.g = (prev.g * (256 - ifog) + cfogcolor.g * ifog) >> 8;
    prev.b = (prev.b * (256 - ifog) + cfogcolor.b * ifog) >> 8;

So something is going sideways distributing the above operations across vector
components. Seems reasonable to suspect code generation.

I tried splitting just the bitshift step with no effect, so my guess is that at
least multiplying an int3 by an int is doing something wrong.


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