- 17 Jul, 2015 1 commit
-
-
Andrew Woloszyn authored
-
- 16 Jul, 2015 1 commit
-
-
John Kessenich authored
-
- 15 Jul, 2015 7 commits
-
-
John Kessenich authored
Comment out some dead assignments per suggestion from static analysis…
-
Steve authored
Code is left in as comments for clarity to humans.
-
John Kessenich authored
Protect location setting methods from writing to non-existing strings.
-
Lei Zhang authored
TInputScanner advances its internal indices to the next character at the end of get(), which means, after reading in the last character in the user-provided shader string, internal index (currentSource) will point to the next shader string (currentSource == numSources), which doesn't exist. Then if a location setting method is called, we will write to some out-of-bound memory. A test case for this is "#line 10000\n". The eval() method in CPPline() will evaluate 10000, but at the same time it reads in the next token, '\n', and the currentSource will be numSources in TInputScanner. Then a parseContext.setCurrentLine() is called, we are writing to out-of-bound memory. Another test case will be "#line 10000 0\n".
-
John Kessenich authored
-
John Kessenich authored
Preprocessing directive handling
-
John Kessenich authored
Also seems to pick up some white-space (line-ending) test differences with a prevoius checkin.
-
- 14 Jul, 2015 9 commits
-
-
John Kessenich authored
-
John Kessenich authored
Added error output to the preprocessor. This patch distinguishes preprocessing errors with normal parsing errors and gives glslangValidator the ability to output preprocessing errors.
-
Andrew Woloszyn authored
This patch distinguishes preprocessing errors with normal parsing errors and gives glslangValidator the ability to output preprocessing errors.
-
Lei Zhang authored
We output empty lines before processing non-whitespace tokens, not after done processing them.
-
Lei Zhang authored
The current line number for the #line directive should be passed in as parameter to the line directive callback. Without it, we don't know how many empty lines we should output.
-
Lei Zhang authored
The line argument passed into the lineCallback function is the literal value of the first argument of the #line directive. lastLine in DoPreprocessing() should be updated taking into consideration the different definitions for #line between specs. Add a test to reveal the bug.
-
John Kessenich authored
Simplify function calls for extensionsTurnedOn(). Lots of places in the code use extensionsTurnedOn(1, ...). This patch introduces a new method, extensionTurnedOn(), for testing if a single extension is turned on.
-
John Kessenich authored
Fix warnings compiling on x64 with size_t to int casts
-
Lei Zhang authored
Lots of places in the code use extensionsTurnedOn(1, ...). This patch introduces a new method, extensionTurnedOn(), for testing if a single extension is turned on.
-
- 13 Jul, 2015 3 commits
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
Updated command-line options, adding -o for saving binaries, -G for OpenGL SPIR-V validation, -v etc. Old uses should still work as they did before. Also encapsulated use of these flags during parsing, for the parse context. Added SPIR-V version to -v.
-
- 12 Jul, 2015 2 commits
-
-
baldurk authored
-
John Kessenich authored
-
- 11 Jul, 2015 4 commits
-
-
John Kessenich authored
include by relative path, so root doesn't need to be in the search path
-
John Kessenich authored
Fix for most Xcode/clang warnings on OSX
-
John Kessenich authored
The infrastructure is in place to not do text comparisons for "texture" ... for deducing type of texture call. But, it is not yet turned on, as it could break some consumers. Am soliciting any feedback on that. See in Initialize.cpp: const bool PureOperatorBuiltins = false; // could break backward compatibility; pending feedback
-
Andre Weissflog authored
- member initializing order in some constructors - missing default branches in switch-case - uninitialized variable if switch-case default (uncritical because program would exit) - && and || brace warnings in if()
-
- 08 Jul, 2015 1 commit
-
-
baldurk authored
-
- 07 Jul, 2015 3 commits
-
-
John Kessenich authored
-
John Kessenich authored
-
John Kessenich authored
Front-end: move to rational internal array-of-array interfaces and design. (A-of-A is not yet implemented though.)
-
- 06 Jul, 2015 1 commit
-
-
John Kessenich authored
-
- 04 Jul, 2015 1 commit
-
-
John Kessenich authored
glslang -> SPIR-V: smear scalars for integer (scalar * vector). OpVectorTimesScalar is only for floats.
-
- 03 Jul, 2015 3 commits
-
-
John Kessenich authored
-
John Kessenich authored
Fix incompatibility with <GL/glext.h>
-
John Kessenich authored
Fix SPV include directives depending on root folder name
-
- 02 Jul, 2015 1 commit
-
-
Felix Kaaman authored
-
- 30 Jun, 2015 1 commit
-
-
Adam Jackson authored
New extensions in glext.h follow the pattern: #ifndef GL_ARB_texture_rectangle #define GL_ARB_texture_rectangle 1 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5 #define GL_TEXTURE_BINDING_RECTANGLE_ARB 0x84F6 #define GL_PROXY_TEXTURE_RECTANGLE_ARB 0x84F7 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8 #endif /* GL_ARB_texture_rectangle */ Versions.h tries to declare: const char* const GL_ARB_texture_rectangle = "GL_ARB_texture_rectangle"; Which means, if you've included glext.h before Versions.h, that the compiler will see "const char* const 1 = ...", and rightly refuse to continue. The ham-fisted approach taken here is to rename the variables in Versions.h with a leading underscore. This does sort of undermine the comment about "better to have the compiler do spelling checks", but. Signed-off-by:Adam Jackson <ajax@redhat.com>
-
- 29 Jun, 2015 2 commits
-
-
John Kessenich authored
The 310 spec (and desktop specs) have clarified this is a waring, not an error, but 300 tests still expect an error.
-
John Kessenich authored
-