On 08/04/2013 10:48 PM, Jim Key wrote:
> Dear Sven Gothel,
>
Hi Jim,
I have CC'ed the forum, since this is a general question.
> I am writing in connection with the error: P1202: Texture's gl states do
> not match with shader's, the problem appears only on tegra devices. Right now
> i am using tegra3 for my sofware, i have been trying to render a texture, but
> i did not succeeded.
> I read change log of JogAmp, and i saw this commit:
You have not posted your shader code here,
I assume you refer to your own code causing this error ?
I assume you use 'discard' in your shader ?
Yes, 'discard' in shaders seems to be buggy on Tegra 2 and 3 drivers,
hence we use alpha=0 value.
We may add / use a quirk in case the renderer is Tegra to
move to the faster 'discard' path in graph.
~Sven
>
> commit a095b7da968533120306ff9ef019685b6698272c
> Author: Sven Gothel <
[hidden email]>
> Date: Tue Oct 4 02:48:22 2011 +0200
>
> Graph Shader Simplification, 'a'/'b' redefined; GraphUI 2-pass demo;
>
> Graph Shader Simplification
>
> - remove enable factor and 2nd 'discard' branch
>
> - use build-in 'max'/'clamp' functions, supposed to be faster
>
> Graph Shader 'a'/'b' redefined
>
> - 'a' is 1-pass shader only
>
> - 'b' is 2-pass incl. (1st pass + 2nd pass)
> - Works well on ARM Mali-400 MP (Galaxy S2).
> * - *_*Doesn't work on NV tegra2 (P1202: Texture's gl states do not match with shader's),*_
> however 2-pass on mobile seems to be overkill for now.
> We may create a workaround (switch shader ..).
>
> GraphUI 2-pass demo;
> - Propagate renderModes and texSize to UIShape's render(..)
> - TODO: Remove GL dependency in UIShape, maybe use a callback or visitor model
> - Adding GarpUI 2-pass launcher (Android and Standalone)
>
>
> Can you give me some kind of brief, an explanation, which would give me
> directions or maybe solution, for this bugging error.
>
> I would be very thankful, if you could share some informations with me, i
> look forward to hear from you
>
> Regrads Jim
>
> PS:
>
http://jogamp.org/deployment/archive/rc/v2.0-rc4/archive/ChangeLogs/jogl-ChangeLog-v2.0-rc4.txt>