I have posted another question : "Invalid depth buffer on ATI X1300/X1550"
It is strange : in this case too when I disable antialiasing I have no more problem...
I tested with the condition always false :
if (bIsTexture != 0) // always false
glTexCoord = glTexGen(0, TexGenMode, v);
So the function is not called. And I have the problem !
So it seems a problem with the generated code.
I have found a workaround for a HD5450 card. (a case in which the compiler/driver works...)
But it does not work on FirePro V3750.
So I will not use functions and put all the code in the main().
It seems impossible to target ATI cards : drivers or compilers are too unstable.
Same problem with Firepro V4800.
And still no answer from AMD people...
The problem of views not drawn when there is a function call in my vertex shader is solved on the last driver for Firepro V4800 (driver 188.8.131.5200).
There is still a problem : a crash when I draw dashed lines (with glLineStipple in display lists).
If I use my workaround (copy/paste of the code of the function in the main) then there is no crash !
So there is still a problem with the last driver on Firepro V4800.
There are problems on Firepro V3750 and there is no update since 23/05/2012 !!
And still no answer from AMD people to give explanations or workarounds...