http://bugs.freedesktop.org/show_bug.cgi?id=13585

           Summary: Texture not rendered correctly when fragment program
                    ATTRIB defined but not used
           Product: DRI
           Version: XOrg CVS
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM modules
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]


This problem was observed on an Intel X3100 graphics adapter (965GM chipset),
using the i915 DRM driver.  Mesa was version 7.0.1-7.fc8.  This particular
issue only shows up on my intel 965 hardware - the exact same code running on
an Nvidia Geforce 6600 looks correct. I am working on an N64 emulator which
programmatically generates fragment programs for rendering.  Sometimes it
defines an ATTRIB which is not used in any instructions later in the code, and
in this case the color value for every fragment in a polygon is the same - I
assume this is because the texture coordinates are not being updated.  The
following fragment program exhibits the error:

!!ARBfp1.0

TEMP t0;

TEMP t1;

TEMP comb;

TEMP comb2;

ATTRIB shade = fragment.color;
TEX t0, fragment.texcoord[0], texture[0], 2D;

TEX t1, fragment.texcoord[1], texture[1], 2D;
MOV comb.rgb, t0
MOV comb.a, t0
MOV result.color, comb;
END


When running this fragment program, the texture is not displayed correctly;
only a single color is used for all fragments.  To work around this bug, either
use the 'shade' ATTRIB in an instruction (such as change 'MOV comb.a, t0' to
'MOV comb.a, shade') or remove the ATTRIB line.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to