Bug 60963

Summary: [r300g] Anno1701: some models are red
Product: Mesa Reporter: Pavel Ondračka <pavel.ondracka>
Component: Drivers/Gallium/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: RADEON_DEBUG=fp,vp
RADEON_DEBUG=noopt,fp,vp output

Description Pavel Ondračka 2013-02-16 19:11:18 UTC
Created attachment 74948 [details]
RADEON_DEBUG=fp,vp

In Anno1701, some models are red, however they are rendered with correct colors when RADEON_DEBUG=noopt is used (or with glsl disabled in Wine).

Apitrace here http://pavel.ondracka.cz/Anno1701.trace (renders fine with proprietary NVIDIA drivers).

Wine: 1.5.23
GPU: RV530
Mesa: f1ab67c13ab97f19c08d99c6ba101edc7d7b80e6
Kernel: 3.7.3-101.fc17.i686
Comment 1 Tom Stellard 2013-03-20 02:41:23 UTC
Could you post a dump with RADEON_DEBUG=noopt,vp,fp
Comment 2 Pavel Ondračka 2013-03-20 18:54:06 UTC
Created attachment 76840 [details]
RADEON_DEBUG=noopt,fp,vp output

(In reply to comment #1)
> Could you post a dump with RADEON_DEBUG=noopt,vp,fp

New log attached. However there is something bad going on. There are two bugs affecting this game. This one and bug 60965, however when I reported them, this bug used to disappeared with RADEON_DEBUG=noopt and bug 60965 didn't. Now when I use RADEON_DEBUG=noopt, the corruption from bug 60965 is much worse and is all over the place. The change did happened with 
f6c061261885fed0c83c437e9459ba79618f1b3a is the first bad commit
commit f6c061261885fed0c83c437e9459ba79618f1b3a
Author: Brian Paul <brianp@vmware.com>
Date:   Fri Mar 1 15:16:15 2013 -0700

    st/mesa: convert ir_triop_lrp to TGSI_OPCODE_LRP
    
    AFAICT, all gallium drivers implement TGSI_OPCODE_LRP.
    Tested with softpipe, llvmpipe, svga drivers.
    
    Reviewed-by: Matt Turner <mattst88@gmail.com>

without RADEON_DEBUG=noopt the corruption is still the same, so my guess is that r300 compiler somehow doesn't like TGSI_OPCODE_LRP, optimizes is away a little bit, but not completely.
Comment 3 GitLab Migration User 2019-09-18 18:51:46 UTC
-- 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/352.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.