[Mesa-dev] Any plans to add type precision to GLSL IR (glsl_type etc.)?

Aras Pranckevicius aras at unity3d.com
Wed Oct 13 03:47:46 PDT 2010


Hi,

For GLSL optimizer (http://github.com/aras-p/glsl-optimizer) that is
built on top of Mesa's GLSL2, I need to add native OpenGL ES 2.0
precision support. Looks like right now Mesa's GLSL can parse
precision qualifiers just fine (when OpenGL ES 2.0 option is used),
but it does not do anything with them beyond the AST.

Are there any plans to add precision qualifiers to glsl_type and
relevant parts of GLSL IR? (some desktop GPUs internally can operate
on different precisions, and supporting that could be a performance
improvement in the future)

If there are no plans to support precision qualifiers beyond AST
anytime soon -- are there some caveats I need to know before I try to
implement it myself? Or some suggestions on how to approach the
problem?



Regards,

--
Aras Pranckevičius
work: http://unity3d.com
home: http://aras-p.info


More information about the mesa-dev mailing list