From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 31827] r300g fails to link a GL program (Mesa 7.9) Date: Wed, 24 Nov 2010 11:05:53 -0800 (PST) Message-ID: <20101124190553.545F013004E@annarchy.freedesktop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from annarchy.freedesktop.org (annarchy.freedesktop.org [131.252.210.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B9EB9E73F for ; Wed, 24 Nov 2010 11:05:53 -0800 (PST) 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 https://bugs.freedesktop.org/show_bug.cgi?id=31827 --- Comment #12 from Hicham HAOUARI 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.