Skip to content
  • roger_fong@apple.com's avatar
    [WebGL] Make sure we satisfy uniform and varying packing restrictions. · f685dcd9
    roger_fong@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=125124.
    <rdar://problem/15203291>
    
    Reviewed by Brent Fulgham.
    
    Tests covered by WebGL Khronos conformance tests:
    webgl/1.0.2/conformance/glsl/misc/shader-uniform-packing-restrictions.html
    webgl/1.0.2/conformance/glsl/misc/shader-varying-packing-restrictions.html
    
    * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp:
    (WebCore::Extensions3DOpenGLCommon::getTranslatedShaderSourceANGLE):
    * src/compiler/Compiler.cpp: 
    Add a check to enforcePackingRestrictions to ensure we make sure packing restrictions for varyings are satisfied as well.
    (TCompiler::TCompiler):
    (TCompiler::Init):
    (TCompiler::compile):
    (TCompiler::enforcePackingRestrictions):
    * src/compiler/ShHandle.h: Keep track of maximum varying vectors.
    * platform/mac/TestExpectations: Unskip some 1.0.2 WebGL conformance tests that should now be passing.
    Skip conformance/ogles/GL/build/build_009_to_016.html which is a faulty test and has too many varyings in one shader.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160199 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f685dcd9