Commit Graph

  • d2762564dc Preprocessor: Prevent (and give an error on) expression division by 0. John Kessenich 2015-07-20 12:29:41 -06:00
  • e9022e1ffe Tests: Increase testing around incorrect use of block names and instances. John Kessenich 2015-07-20 12:03:04 -06:00
  • 78a5a0d7d8 Front end: Prevent use of a block name, which has no other use in a shader. John Kessenich 2015-07-20 11:35:51 -06:00
  • 68965c0fa9 Fix g++ build break (portibility problems with stl hash). This partly turns off the stl improvements. John Kessenich 2015-07-20 02:06:22 -06:00
  • 6ab3d582d6 Preprocessor: 1) Rationalize the "fixed atom" scheme, 2) remove redundant lookups when the text is already available. John Kessenich 2015-07-19 15:49:03 -06:00
  • 2f273369e4 Performance: Simple upgrade/cleanup of stl c++11 containers (10% perf. increase). John Kessenich 2015-07-18 22:34:27 -06:00
  • f4673162b7 Building: Fix a couple of new warnings. John Kessenich 2015-07-18 11:25:54 -06:00
  • 2b4b9bd65b Front-end: Add error-recovery code for a switch statement that ends with a case/default that has no statements. John Kessenich 2015-07-18 11:13:14 -06:00
  • c22f37cfb4 Generate correctly structured do-while loops. David Neto 2015-07-15 16:21:26 -04:00
  • 51b31b5785 Merge pull request #21 from google/allow_non_null_strings John Kessenich 2015-07-17 11:51:56 -06:00
  • 72becbe5a2 Merge pull request #20 from google/remove_exception John Kessenich 2015-07-17 11:45:31 -06:00
  • 6a6aaeffd3 Added a setStringsWithLengths() method to TShader. Andrew Woloszyn 2015-07-16 09:48:47 -04:00
  • e837f99afb Removed the single usage of exceptions in all of glslang. Andrew Woloszyn 2015-07-10 16:11:00 -04:00
  • e3933d684d Front-end: Implement GL_OES_gpu_shader5. John Kessenich 2015-07-15 19:42:59 -06:00
  • ace4c45afc Merge pull request #18 from srk-lunarg/v30_static_analysis_fixes John Kessenich 2015-07-15 15:06:39 -06:00
  • 465a14666a Comment out some dead assignments per suggestion from static analysis tools. Code is left in as comments for clarity to humans. Steve 2015-07-15 14:34:35 -06:00
  • a417f01041 Merge pull request #17 from google/non-existing-string John Kessenich 2015-07-15 14:03:33 -06:00
  • 6c9a38161b Protect location setting methods from writing to non-existing strings. Lei Zhang 2015-07-10 11:18:47 -04:00
  • 9e55f633bc Include specification revision as part of the version string. John Kessenich 2015-07-15 10:03:39 -06:00
  • 279012d8c4 Merge pull request #16 from google/pp-directive John Kessenich 2015-07-14 19:36:29 -06:00
  • fdfa6bbdfe Front-end: enforce qualifiers that cannot appear on block declarations. John Kessenich 2015-07-14 19:30:11 -06:00
  • 8318878c89 Fix compile errors: about 25 .PpError didn't compile, need to be .ppError. John Kessenich 2015-07-14 15:33:38 -06:00
  • 4a22f9a4e2 Merge pull request #15 from google/preprocessing-error John Kessenich 2015-07-14 15:29:13 -06:00
  • aae1ad8296 Added error output to the preprocessor. Andrew Woloszyn 2015-06-24 17:00:46 -04:00
  • 6aa6d9d3d0 Remove uncessary line break. Lei Zhang 2015-07-03 01:35:26 -04:00
  • 46ea5396ef Fix empty line handling in line directive callback. Lei Zhang 2015-07-04 22:30:59 -04:00
  • 5cbc990a0a Fix line number handling in line directive callback. Lei Zhang 2015-07-03 01:25:47 -04:00
  • 4d036c455e Merge pull request #14 from google/extensionturnedon John Kessenich 2015-07-14 12:30:26 -06:00
  • eebb20511f Merge pull request #11 from baldurk/size-t-int-warning-fixes John Kessenich 2015-07-14 12:25:55 -06:00
  • c4d20e0041 Simplify function calls for extensionsTurnedOn(). Lei Zhang 2015-07-05 17:48:53 -04:00
  • 3a194f7ba4 Update readme to point to Khronos landing page. John Kessenich 2015-07-13 11:41:06 -06:00
  • f98ee23415 Fix incorrect used of snprintf() John Kessenich 2015-07-12 19:39:51 -06:00
  • 68d78fd31e Updated command-line options, adding -o for saving binaries, -G for OpenGL SPIR-V validation, -v etc. John Kessenich 2015-07-12 19:28:10 -06:00
  • d76692dfb8 on x64, size_t is 64-bit and int is 32-bit, so needs an explicit cast baldurk 2015-07-12 11:32:58 +02:00
  • b329715caf Fix clang static analyzer issues, as reported by floooh. John Kessenich 2015-07-11 18:01:03 -06:00
  • 1f654e1603 Merge pull request #4 from baldurk/relative-include-paths John Kessenich 2015-07-11 16:41:38 -06:00
  • 549c2932af Merge pull request #5 from floooh/fix-clang-warnings John Kessenich 2015-07-11 16:36:08 -06:00
  • 73fcdefaac Add some missing 'const' and texture-op guards, for future change to enum-based texture calls. John Kessenich 2015-07-11 13:37:02 -06:00
  • a5ade51363 Fix most clang warnings Andre Weissflog 2015-07-11 14:45:57 +02:00
  • 42169c5fee include by relative path, so root doesn't need to be in the search path baldurk 2015-07-08 15:11:59 +02:00
  • e6f7988ade Linux build: fix case problem with new file. John Kessenich 2015-07-07 00:53:26 -06:00
  • ff5abf34a8 Clear up a C++ compile warning John Kessenich 2015-07-06 21:02:26 -06:00
  • e0603a441e Front-end: move to rational internal array-of-array interfaces and design. (A-of-A is not yet implemented though.) John Kessenich 2015-07-06 19:08:03 -06:00
  • dcab977055 docs: Update missing features list John Kessenich 2015-07-06 14:17:11 -06:00
  • ec43d0abec glslang -> SPIR-V: smear scalars for integer (scalar * vector). OpVectorTimesScalar is only for floats. John Kessenich 2015-07-04 17:17:31 -06:00
  • 9b0d9c8aa4 Use E_ prefix instead of _ for distinguishing extension strings from glext.h John Kessenich 2015-07-03 09:24:46 -06:00
  • fd1e048b9c Merge pull request #2 from nwnk/glext-compatibility John Kessenich 2015-07-03 09:15:03 -06:00
  • 7867e07631 Merge pull request #3 from fkaa/include-fix John Kessenich 2015-07-03 09:12:50 -06:00
  • 61deffd92a Fix include directive depending on root folder name Felix Kaaman 2015-07-02 15:25:23 +02:00
  • 93deac5295 Fix incompatibility with <GL/glext.h> Adam Jackson 2015-06-30 10:11:38 -04:00
  • 1189a7bc4a Make double underscore "__" an error for ES 300, but a warning for 310. John Kessenich 2015-06-29 17:19:17 -06:00
  • 63cebdb4c2 Building README: Update to CMake information. John Kessenich 2015-06-29 10:42:27 -06:00
  • 8acc32bd89 Merge pull request #1 from antiagainst/markdown-readme John Kessenich 2015-06-29 10:30:13 -06:00
  • 65299b9ef0 Format README using markdown. Lei Zhang 2015-06-27 18:43:26 -04:00
  • 140f3df134 Final round for line endings. John Kessenich 2015-06-26 16:58:36 -06:00
  • b63263267d Second round line ending clean up, from fresh round trip. John Kessenich 2015-06-26 16:42:50 -06:00
  • d49d524b1c Add .gitattributes and normalize a few stray file's line endings John Kessenich 2015-06-26 16:29:10 -06:00
  • 0e7674afa0 Make the "switch-label not followed by statement" warning an error, depending on version. John Kessenich 2015-06-26 12:24:28 -06:00
  • add1a4d88d Add +x to two more scripts. John Kessenich 2015-06-26 10:48:26 -06:00
  • 2f22291a94 Add +x to two executables. John Kessenich 2015-06-26 00:40:05 -06:00
  • 02ad18a2a6 Make smoother use in GitHub johnkslang 2015-06-26 00:12:31 -06:00
  • 33e075faad glslang build: force the use of -std=c++11 when building with Clang. David Neto <dneto@google.com>. John Kessenich 2015-06-24 16:05:50 +00:00
  • b61b82182f glslang front-end: Implement AEP *_point_size extensions. John Kessenich 2015-06-23 04:14:00 +00:00
  • 6e76bdc88d glslang front-end: Full turn-on of AEP tessellation semantics. John Kessenich 2015-06-19 23:03:32 +00:00
  • 105704eff2 glslang: Finish turn on of AEP geometry shaders for ES 3.1. John Kessenich 2015-06-19 06:28:59 +00:00
  • 6626cadbad glslang front-end: Don't emit blank lines for empty info logs. From Andrew Woloszyn <awoloszyn@google.com>. John Kessenich 2015-06-19 05:14:19 +00:00
  • 2f21fccee9 glslang testing: Remove dependence on testfiles from LunarGLASS. John Kessenich 2015-06-17 16:15:09 +00:00
  • ab556eaaea fix linux ^M issues with previous check-in John Kessenich 2015-06-17 02:41:51 +00:00
  • c555dddd53 glslang preprocessing: Add -E option to print out preprocessed GLSL, and do the work needed to generate a preprocessed stream. From Andrew Woloszyn <awoloszyn@google.com>. John Kessenich 2015-06-17 02:38:44 +00:00
  • 9288f46b95 glslang front-end: Added a callback mechanism for #line/#pragma/#version/#extension. From Andrew Woloszyn <awoloszyn@google.com>. John Kessenich 2015-06-16 23:08:00 +00:00
  • 47632b7aaf glslang front-end: track column numbers (they don't go anywhere yet, just get tracked). Andrew Woloszyn <awoloszyn@google.com>. John Kessenich 2015-06-16 19:49:22 +00:00
  • edadf45605 glslang: Add API override of version and profile for testing purposes. From Lei Zhang <antiagainst@google.com>. John Kessenich 2015-06-16 19:01:56 +00:00
  • 99a3c59fae glslang tests: Fix error propagation. From David Neto <dneto@google.com>. John Kessenich 2015-06-16 18:40:40 +00:00
  • 9e41f362a6 glslang AEP: Full semantics for *_shader_io_blocks. John Kessenich 2015-06-15 15:08:41 +00:00
  • f6deb6203a glslang AEP: Geometry shader features nominally working. (Full semantic check and turn on pending.) Also picked up partial tessellation shader interface, shader_io_blocks, and mirrored OES set of extensions functionality. John Kessenich 2015-06-14 21:36:44 +00:00
  • e5e0f6e37a glslang -> SPV: swap arguments as needed for OpVectorTimesScalar and OpMatrixTimesScalar, and check for correct types for those as well as OpMatrixTimesVector, OpVectorTimesMatrix, and OpMatrixTimesMatrix. John Kessenich 2015-06-13 00:48:48 +00:00
  • 8d64d44c3f glslang -> SPV: fix degenerate switch topologies (bug 14118). John Kessenich 2015-06-12 22:34:37 +00:00
  • 93930d6f9a glslang ES reference: Don't allow std430 on uniform blocks (bug 14095). John Kessenich 2015-06-12 22:09:25 +00:00
  • 453bb26ef5 glslang AEP: The extension scheme, extension-enabled stage-existence testing, and compute-shader interface. Still needs in/out blocks, unsized arrays, etc. before real testing can be done. John Kessenich 2015-06-12 05:01:25 +00:00
  • 4751ce3fc1 glslang front-end: Support relaxed error checking for bug 13724 "...initializer must be a constant expression..." because that change breaks existing shipping applications. (Normal validation for portability testing still gives an error.) John Kessenich 2015-06-11 16:39:01 +00:00
  • fae38ee277 glslang portability: Fixed a slew of OSX compilation warnings (but not all). John Kessenich 2015-06-10 23:23:12 +00:00
  • 79eaa91e6f glslang portability: Resolve OSX errors, some other OS warnings. John Kessenich 2015-06-10 22:05:48 +00:00
  • 3ef22f2139 SPV compressor: Fixes a possible asserts. Attribution: spvremapper@lunarg.com John Kessenich 2015-06-09 02:01:53 +00:00
  • b8478d7eac glslang: Allow programmatically prepending code to a shader without worrying about #version being first, to implement command-line-defined macros. From Dejan Mircevski <deki@google.com>. John Kessenich 2015-06-08 18:31:23 +00:00
  • a49fe84a4e glslang ref. front-end: Add missing image format for desktop (but these are still yet to be used.) John Kessenich 2015-06-08 17:48:26 +00:00
  • 2fde45a1eb Requesting input on Bug 1346: checking in, turned off, enum-based operators for texturing and image operations. Please reply there with any input, thanks. John Kessenich 2015-05-26 01:36:50 +00:00
  • 92993c5e2f glslang tests: Update test result from test-file change. John Kessenich 2015-05-25 22:14:41 +00:00
  • bd7b669213 update Window's binary John Kessenich 2015-05-22 23:32:53 +00:00
  • fea9835685 update linux binary John Kessenich 2015-05-22 23:32:33 +00:00
  • 06e1d0b434 glslang -> SPV: Improvements in swizzles on access chains: Bug 14007 (wrong type), simplications, tests, support mixed swizzle with dynamic component selection. John Kessenich 2015-05-22 21:57:58 +00:00
  • 6b3fd19d89 glslang -> SPV: add decorations for built-ins that are inside blocks. John Kessenich 2015-05-22 01:53:15 +00:00
  • ea543986f9 glslang -> SPV: translate the source profile to the SPV source language. John Kessenich 2015-05-22 01:21:31 +00:00
  • e61ed59726 glsl -> SPV: fix OpVectorInsertDynamic result type bug. John Kessenich 2015-05-22 00:58:41 +00:00
  • 3a13a0c71b Correct some English spellings of SPIR-V. John Kessenich 2015-05-20 16:13:01 +00:00
  • 01685c3ff8 SPV compression: Final check-in enabling this on MSVC 2012. All compression submissions from Steve (spvremapper@lunarg.com). John Kessenich 2015-05-20 16:04:17 +00:00
  • 3c4a276282 SPIR-V compression: Requires rerunning CMake. Adds a standalone tool for running the SPV compression. John Kessenich 2015-05-19 21:07:04 +00:00
  • 40e391184c glslang -> SPV: Use the new TBuiltInVariable instead of string compares to get the type of SPV built in. Also fixed gl_FragData and gl_PrimitiveIDIn. John Kessenich 2015-05-18 23:25:32 +00:00
  • dff18a2be0 glslang: Formally track all built-in variables, right from the beginning, to enable avoiding all textual compares at any subsequent stage in the stack. (To be used in future check ins.) John Kessenich 2015-05-18 16:45:49 +00:00
  • ca3457f1a7 glslang: Fix a few more warnings, and see it using nullptr causes anyone problems (testing c++11 portability). John Kessenich 2015-05-18 01:59:45 +00:00
  • b06127c513 glslang PP: make decimal number parser clearer and add boundary tests. Also, disable the warning for "do {} while (true);" John Kessenich 2015-05-16 01:15:41 +00:00