Hi,
My application works fine on Adreno200, but It doesn't work on Adreno205.Android OS freezes.
I investigated the cause and I discovered it.
My shader source:
161 if(alpha < 0.1 /*m_AlphaDiscardThreshold*/){ 162 discard; 163 }
I commented out line 161-163, it works fine on Adreno205.
Question:
Why discard doesn't work on Adreno205?
Test phone SHARP IS05(Android 2.3.4)
My application(free):
Thanks.
This is a sample which works on Adreno200, but it doesn't work on Adreno205.
http://chototsumoushinp.dip.jp/miku/download/AndroidSample_tinyar-116-ad...
I removed discard statement in the fragment shader, it works on Adreno205.
Hi,
This shader freezes on Adreno205.
However, this shader doesn't freeze.
Thanks.
In general we discourage the use of the discard statement as it is a very expensive operation. You will have much better performing code by eliminating its use and rewriting the shader (for example setting alpha to 0 with alpha blending enabled).
(e.g.) http://stackoverflow.com/questions/8509051/is-discard-bad-for-program-pe...
Hi,
I know that.
However, I need it because some models can't draw without it.
Thanks.