From: bugzilla-daemon@freedesktop.org Subject: [Bug 70327] Casting floating point variable to integer not working properly while constant gets converted properly Date: Wed, 09 Oct 2013 21:43:40 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1446253181==" Return-path: Received: from culpepper.freedesktop.org (unknown [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 6206CE7E2E for ; Wed, 9 Oct 2013 14:43:40 -0700 (PDT) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1446253181== Content-Type: multipart/alternative; boundary="1381355020.fb14c28E0.18339"; charset="us-ascii" --1381355020.fb14c28E0.18339 Date: Wed, 9 Oct 2013 21:43:40 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" https://bugs.freedesktop.org/show_bug.cgi?id=70327 --- Comment #6 from tony.wasserka@dolphin-emu.org --- Steps the reproduce the issue: 1. Clone the dolphin repository from the url provided at http://code.google.com/p/dolphin-emu/source/checkout 2. Checkout the tev_fixes_new branch at commit 5d8cfade42ce . 3. Build Dolphin with the build instructions outlined at http://code.google.com/p/dolphin-emu/wiki/Linux_Build . We use CMake for our build system, so if you're familiar with that you should be able to get it running quickly. 4. run "dolphin-emu -b -e ". Alternatively, run Dolphin normally and open the dff file manually. 5. You should be able to see Mario (the main character of the game in the rendered scene), and only Mario (I removed all unimportant stuff from the scene). If you don't, try to make sure things work all by running any gamecube demo elf (sorry, got no link) and following the instructions at http://wiki.dolphin-emu.org/index.php?title=FifoPlayer under "How to play back a fifo log?" Basically, r600g renders the broken screenshot that I attached, while the software renderer renders the scene fine. Replacing "fog" in the "iprev.rgb = (iprev.rgb * (int(256.0-fog))) / 256;" line with "0.0" makes the scene render correctly. -- You are receiving this mail because: You are the assignee for the bug. --1381355020.fb14c28E0.18339 Date: Wed, 9 Oct 2013 21:43:40 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"

Comment # 6 on bug 70327 from
Steps the reproduce the issue:
1. Clone the dolphin repository from the url provided at
http://code.google.com/p/dolphin-emu/source/checkout
2. Checkout the tev_fixes_new branch at commit 5d8cfade42ce .
3. Build Dolphin with the build instructions outlined at
http://code.google.com/p/dolphin-emu/wiki/Linux_Build . We use CMake for our
build system, so if you're familiar with that you should be able to get it
running quickly.
4. run "dolphin-emu -b -e <path to the attached dff file>". Alternatively, run
Dolphin normally and open the dff file manually.
5. You should be able to see Mario (the main character of the game in the
rendered scene), and only Mario (I removed all unimportant stuff from the
scene). If you don't, try to make sure things work all by running any gamecube
demo elf (sorry, got no link) and following the instructions at
http://wiki.dolphin-emu.org/index.php?title=FifoPlayer under "How to play back
a fifo log?"


Basically, r600g renders the broken screenshot that I attached, while the
software renderer renders the scene fine. Replacing "fog" in the "iprev.rgb =
(iprev.rgb * (int(256.0-fog))) / 256;" line with "0.0" makes the scene render
correctly.


You are receiving this mail because:
  • You are the assignee for the bug.
--1381355020.fb14c28E0.18339-- --===============1446253181== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1446253181==--