bennycen / angleproject

Automatically exported from code.google.com/p/angleproject
Other
0 stars 0 forks source link

ANGLE shader compilation fails with error X4502 #748

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, 
I'm not sure if it's the correct place to ask. I'm using a custom OpenGL shader 
(using Qt Quick + ANGLE on Windows XP 32 bit) which uses gl_FrontFacing. 

I get an error 
QOpenGLShader::link: "(90,46): error X4502: invalid ps_2_0 input semantic 
'VFACE'

Warning: D3D shader compilation failed with 
default
 flags.
 Retrying with 
avoid flow control

This seems to be vaguely related to this chromium bug 
https://code.google.com/p/chromium/issues/detail?id=129855

I'm using a Windows XP 32 bit machine (virtual) , ANGLE (libglESv2)
GL_VERSION : OpenGL ES 2.0 (ANGLE 1.3.5bb7ec572d0a)
The same code works on Windows 7.

I'd like to ask if it's a known issue, and old one, or it may depend on the 
render driver (virtualbox D3D adapter)?
What data can I send you to reproduce?

Thanks
Qb

Original issue reported on code.google.com by tho...@gmail.com on 19 Sep 2014 at 3:12

GoogleCodeExporter commented 9 years ago
Hey tholag, which version of ANGLE are you using? I can't seem to locate that 
revision in our working tree.

One odd thing is ps_2_0.. we don't support pixel shader 2.0 anywhere in ANGLE. 
Does your virtual machine support D3D9/D3D11? Do you know the maximum pixel 
shader version it supports?

Original comment by jmad...@chromium.org on 19 Sep 2014 at 3:27

GoogleCodeExporter commented 9 years ago
I used the ANGLE version bundled in Qt 5.2.1 sources ZIP, so the commit may 
belong to another repository.

I'm not really expert on DX , so I don't really know the thing about ps_2_0... 
Anyway on monday I will use a diagnostic tool to extract the informations you 
need from the render driver. I'll also try on a real machine. It may be that 
the experimental virtualbox driver is not fully working.

The only thing I can confirm for now is that by removing gl_frontFacing from 
the shader it works.

Thanks
Qb

Original comment by tho...@gmail.com on 19 Sep 2014 at 4:51

GoogleCodeExporter commented 9 years ago
@jmadill: historically, we did have partial support for SM2-- e.g. the else 
case in the usesFragCoord section of DynamicHLSL.cpp. We should probably at 
least be checking that the shader model is 3+ before using the VFACE semantic.

Original comment by shannonw...@chromium.org on 19 Sep 2014 at 7:18