[Bug 31827] r300g fails to link a GL program (Mesa 7.9)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 24 11:05:53 PST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=31827

--- Comment #12 from Hicham HAOUARI <hicham.haouari at gmail.com> 2010-11-24 11:05:53 PST ---
(In reply to comment #11)
> The if statement in the fragment shader is too complex. Could you possibly move
> the texture lookup in front of it and see if it helps?

modifying :
******************************************************************************
if(gl_Color.x==1.0 && texture2D(g_tex2,gl_TexCoord[1].xy).a==0.0)
        discard;
******************************************************************************

to :
******************************************************************************
bool res = ( gl_Color.x==1.0 && texture2D(g_tex2,gl_TexCoord[1].xy).a==0.0 );
if(res)  discard;
******************************************************************************

gives the same error message

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


More information about the dri-devel mailing list