From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-bk0-f45.google.com (mail-bk0-f45.google.com [209.85.214.45]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1D441E00724 for ; Thu, 17 Jan 2013 06:40:22 -0800 (PST) Received: by mail-bk0-f45.google.com with SMTP id jk13so1398403bkc.32 for ; Thu, 17 Jan 2013 06:40:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type:x-gm-message-state; bh=e37e+HovIbig8e3ARydk79X4Q/wqfFadkziP+8Qcg+s=; b=IFxxTmuJtSpf3Hj/XAnIqNg46FczMhOTM4SMCh8ya7BtRKiU8ce/SvqteKiDpcVuCH xh9Bif6gczcJrUPAkk4GoJdkxW4zILZOldCSr3rpUAVSudKlNmRTk/UoLuwOnFb+u5GX 6gM6MYXccqFLMR6jVAzC00ANr+1DeMG2WOtWTJ0YD1YnWhxHdx2iw2oSA1Eq9VYHj5PA IEsL1I/cVOyLSSVYKcPYKUv9FnCzm4qzOHYmSDoTINZkBEYMRwUHTy2me+VVNRqKV3n5 Od1xNYuKJsQuc9aF79rXB9vkQaBpExsOEq4Nw7m2aQZJcXVmqQZZOzT8XXm4u5/mEbgk y/oQ== X-Received: by 10.204.9.3 with SMTP id j3mr1535099bkj.134.1358433622010; Thu, 17 Jan 2013 06:40:22 -0800 (PST) Received: from rudolf.localnet (mnch-5d85a4fd.pool.mediaWays.net. [93.133.164.253]) by mx.google.com with ESMTPS id o9sm1419276bko.15.2013.01.17.06.40.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 17 Jan 2013 06:40:21 -0800 (PST) From: Thomas Senyk To: meta-freescale@yoctoproject.org Date: Thu, 17 Jan 2013 15:40:20 +0100 Message-ID: <3687851.a2KRPc6CnN@rudolf> Organization: Nokia User-Agent: KMail/4.9.5 (Linux/3.6.11-1-ARCH; KDE/4.9.5; x86_64; ; ) In-Reply-To: <3098459.WXlKcWq7AS@rudolf> References: <3098459.WXlKcWq7AS@rudolf> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQk0+UyCFRiF3Lw5fxASIDTNJCktrMl/co4JBH7YiyUnVNXaPzvhFmR5GalBNxvoXDUmtkvR Subject: Re: Problem with shader compiler X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 14:40:23 -0000 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" We can stop this ... Just got notices that it's known and already fixed in the last BSP rele= ase=20 (from Tuesday) Thanks and sorry for the useless buzz :) Greets Thomas On Thu, January 17, 2013 15:37:46 Thomas Senyk wrote: > On Thu, January 17, 2013 13:49:46 Erik Bot=F6 wrote: > > Hi, > >=20 > > I'm using meta-fsl-arm with an imx6 sabrelite board, kernel 3.0.35 > > + gpu-viv-bin-mx6q_12.09.01. > >=20 > > I use the sysroot from poky to build Qt5, but then run in to some p= roblems > > with shaders. They seem to stem from the fact that the shader compi= ler > > doesn't support #define and/or #ifdef. > >=20 > > Example: > >=20 > > QOpenGLShader::compile(Fragment): (5:0) : error : syntax error > >=20 > > *** Problematic Fragment shader source code *** > > #ifndef GL_FRAGMENT_PRECISION_HIGH > > #define highp mediump > > #endif > > uniform sampler2D texture; > > varying highp vec2 textureCoord; > > void main() { > >=20 > > gl_FragColor =3D texture2D(texture, textureCoord).bgra; > >=20 > > } > >=20 > > *** > >=20 > > It can be manually fixed by exchanging all occurences of highp with= > > mediump, instead of relying on the preprocessor macros. The shader > > compiler > > should support this, right? >=20 > Addition bug-report information: > A error looks like that: >=20 > Warning: QOpenGLShader::compile(Fragment): (4:0) : error : syntax err= or > Warning: *** Problematic Fragment shader source code *** > Warning: #ifndef GL_FRAGMENT_PRECISION_HIGH > #define highp mediump > #endif > varying highp vec2 qt_TexCoord; > uniform sampler2D qt_Texture; > void main() { > gl_FragColor =3D texture2D(qt_Texture, qt_TexCoord); > } >=20 > If one removes the the 3 "#ifndef ... #endif" lines it works. > Maybe the GLSL-preprocessor is broken? >=20 >=20 > Greets > Thomas >=20 > > Best Regards, > > Erik Bot=F6