All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem with shader compiler
@ 2013-01-17 12:49 Erik Botö
  2013-01-17 14:37 ` Thomas Senyk
  0 siblings, 1 reply; 11+ messages in thread
From: Erik Botö @ 2013-01-17 12:49 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 841 bytes --]

Hi,

I'm using meta-fsl-arm with an imx6 sabrelite board, kernel 3.0.35
+ gpu-viv-bin-mx6q_12.09.01.

I use the sysroot from poky to build Qt5, but then run in to some problems
with shaders. They seem to stem from the fact that the shader compiler
doesn't support #define and/or #ifdef.

Example:

QOpenGLShader::compile(Fragment): (5:0) : error : syntax error

*** Problematic Fragment shader source code ***
#ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
uniform sampler2D texture;
varying highp vec2 textureCoord;
void main() {
   gl_FragColor = texture2D(texture, textureCoord).bgra;
}

***

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?

Best Regards,
Erik Botö

[-- Attachment #2: Type: text/html, Size: 1182 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-02-08  6:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-17 12:49 Problem with shader compiler Erik Botö
2013-01-17 14:37 ` Thomas Senyk
2013-01-17 14:40   ` Thomas Senyk
2013-01-17 20:24     ` Otavio Salvador
2013-01-30 15:55       ` Bruno CELDRAN
2013-01-30 16:02         ` Otavio Salvador
2013-01-30 16:23           ` Bruno CELDRAN
2013-01-30 17:09             ` Thomas Senyk
2013-01-30 17:28               ` Otavio Salvador
2013-02-01 16:55                 ` Thomas Senyk
2013-02-08  5:58                   ` Mattias Sahlén

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.