Reorganized new sources from recently applied patch into third_party directory.

parent aa7c6c1f
...@@ -12,7 +12,6 @@ TransGaming Inc. ...@@ -12,7 +12,6 @@ TransGaming Inc.
3DLabs Inc. Ltd. 3DLabs Inc. Ltd.
Adobe Systems Inc. Adobe Systems Inc.
Apple Inc.
Autodesk, Inc. Autodesk, Inc.
Cloud Party, Inc. Cloud Party, Inc.
Intel Corporation Intel Corporation
......
...@@ -64,8 +64,6 @@ ...@@ -64,8 +64,6 @@
'COMPILER_IMPLEMENTATION', 'COMPILER_IMPLEMENTATION',
], ],
'sources': [ 'sources': [
'compiler/ArrayBoundsClamper.cpp',
'compiler/ArrayBoundsClamper.h',
'compiler/BaseTypes.h', 'compiler/BaseTypes.h',
'compiler/BuiltInFunctionEmulator.cpp', 'compiler/BuiltInFunctionEmulator.cpp',
'compiler/BuiltInFunctionEmulator.h', 'compiler/BuiltInFunctionEmulator.h',
...@@ -143,6 +141,8 @@ ...@@ -143,6 +141,8 @@
'compiler/timing/RestrictFragmentShaderTiming.h', 'compiler/timing/RestrictFragmentShaderTiming.h',
'compiler/timing/RestrictVertexShaderTiming.cpp', 'compiler/timing/RestrictVertexShaderTiming.cpp',
'compiler/timing/RestrictVertexShaderTiming.h', 'compiler/timing/RestrictVertexShaderTiming.h',
'third_party/compiler/ArrayBoundsClamper.cpp',
'third_party/compiler/ArrayBoundsClamper.h',
], ],
'conditions': [ 'conditions': [
['OS=="win"', { ['OS=="win"', {
......
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 1 #define MINOR_VERSION 1
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1717 #define BUILD_REVISION 1719
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
// found in the LICENSE file. // found in the LICENSE file.
// //
#include "compiler/ArrayBoundsClamper.h"
#include "compiler/BuiltInFunctionEmulator.h" #include "compiler/BuiltInFunctionEmulator.h"
#include "compiler/DetectRecursion.h" #include "compiler/DetectRecursion.h"
#include "compiler/ForLoopUnroll.h" #include "compiler/ForLoopUnroll.h"
...@@ -20,6 +19,7 @@ ...@@ -20,6 +19,7 @@
#include "compiler/depgraph/DependencyGraphOutput.h" #include "compiler/depgraph/DependencyGraphOutput.h"
#include "compiler/timing/RestrictFragmentShaderTiming.h" #include "compiler/timing/RestrictFragmentShaderTiming.h"
#include "compiler/timing/RestrictVertexShaderTiming.h" #include "compiler/timing/RestrictVertexShaderTiming.h"
#include "third_party/compiler/ArrayBoundsClamper.h"
bool isWebGLBasedSpec(ShShaderSpec spec) bool isWebGLBasedSpec(ShShaderSpec spec)
{ {
......
...@@ -16,13 +16,13 @@ ...@@ -16,13 +16,13 @@
#include "GLSLANG/ShaderLang.h" #include "GLSLANG/ShaderLang.h"
#include "compiler/ArrayBoundsClamper.h"
#include "compiler/BuiltInFunctionEmulator.h" #include "compiler/BuiltInFunctionEmulator.h"
#include "compiler/ExtensionBehavior.h" #include "compiler/ExtensionBehavior.h"
#include "compiler/HashNames.h" #include "compiler/HashNames.h"
#include "compiler/InfoSink.h" #include "compiler/InfoSink.h"
#include "compiler/SymbolTable.h" #include "compiler/SymbolTable.h"
#include "compiler/VariableInfo.h" #include "compiler/VariableInfo.h"
#include "third_party/compiler/ArrayBoundsClamper.h"
class LongNameMap; class LongNameMap;
class TCompiler; class TCompiler;
......
...@@ -138,7 +138,6 @@ ...@@ -138,7 +138,6 @@
</ClCompile> </ClCompile>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>
<ClCompile Include="ArrayBoundsClamper.cpp" />
<ClCompile Include="BuiltInFunctionEmulator.cpp" /> <ClCompile Include="BuiltInFunctionEmulator.cpp" />
<ClCompile Include="Compiler.cpp" /> <ClCompile Include="Compiler.cpp" />
<ClCompile Include="debug.cpp" /> <ClCompile Include="debug.cpp" />
...@@ -174,6 +173,7 @@ ...@@ -174,6 +173,7 @@
<ClCompile Include="depgraph\DependencyGraphTraverse.cpp" /> <ClCompile Include="depgraph\DependencyGraphTraverse.cpp" />
<ClCompile Include="timing\RestrictFragmentShaderTiming.cpp" /> <ClCompile Include="timing\RestrictFragmentShaderTiming.cpp" />
<ClCompile Include="timing\RestrictVertexShaderTiming.cpp" /> <ClCompile Include="timing\RestrictVertexShaderTiming.cpp" />
<ClCompile Include="..\third_party\compiler\ArrayBoundsClamper.cpp" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<CustomBuild Include="glslang.l"> <CustomBuild Include="glslang.l">
...@@ -226,7 +226,6 @@ ...@@ -226,7 +226,6 @@
</CustomBuild> </CustomBuild>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ClInclude Include="ArrayBoundsClamper.h" />
<ClInclude Include="BaseTypes.h" /> <ClInclude Include="BaseTypes.h" />
<ClInclude Include="BuiltInFunctionEmulator.h" /> <ClInclude Include="BuiltInFunctionEmulator.h" />
<ClInclude Include="Common.h" /> <ClInclude Include="Common.h" />
...@@ -266,8 +265,9 @@ ...@@ -266,8 +265,9 @@
<ClInclude Include="depgraph\DependencyGraph.h" /> <ClInclude Include="depgraph\DependencyGraph.h" />
<ClInclude Include="depgraph\DependencyGraphBuilder.h" /> <ClInclude Include="depgraph\DependencyGraphBuilder.h" />
<ClInclude Include="depgraph\DependencyGraphOutput.h" /> <ClInclude Include="depgraph\DependencyGraphOutput.h" />
<ClInclude Include="..\third_party\compiler\ArrayBoundsClamper.h" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">
</ImportGroup> </ImportGroup>
</Project> </Project>
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "compiler/ArrayBoundsClamper.h" #include "third_party/compiler/ArrayBoundsClamper.h"
const char* kIntClampBegin = "// BEGIN: Generated code for array bounds clamping\n\n"; const char* kIntClampBegin = "// BEGIN: Generated code for array bounds clamping\n\n";
const char* kIntClampEnd = "// END: Generated code for array bounds clamping\n\n"; const char* kIntClampEnd = "// END: Generated code for array bounds clamping\n\n";
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef COMPILER_ARRAY_BOUNDS_CLAMPER_H_ #ifndef THIRD_PARTY_COMPILER_ARRAY_BOUNDS_CLAMPER_H_
#define COMPILER_ARRAY_BOUNDS_CLAMPER_H_ #define THIRD_PARTY_COMPILER_ARRAY_BOUNDS_CLAMPER_H_
#include "GLSLANG/ShaderLang.h" #include "GLSLANG/ShaderLang.h"
...@@ -54,4 +54,4 @@ private: ...@@ -54,4 +54,4 @@ private:
bool mArrayBoundsClampDefinitionNeeded; bool mArrayBoundsClampDefinitionNeeded;
}; };
#endif // COMPILER_ARRAY_BOUNDS_CLAMPER_H_ #endif // THIRD_PARTY_COMPILER_ARRAY_BOUNDS_CLAMPER_H_
Copyright (C) 2012 Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY APPLE, INC. ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE, INC. OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Name: ANGLE array bounds clamper from WebKit
Short Name: WebKit
URL: http://webkit.org
Version: 0
License: BSD
Security Critical: yes
Description:
Implements clamping of array indexing expressions during shader translation.
Local Modifications:
None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment