Граф коммитов

682 Коммитов

Автор SHA1 Сообщение Дата
Aras Pranckevicius d92e45dfd1 fix warning 2013-04-22 10:24:23 +03:00
Aras Pranckevicius 81deaeb84e tests: always convert test files to LF endings 2013-04-22 10:24:14 +03:00
Aras Pranckevicius de4dedb918 const 2013-04-21 13:21:11 +03:00
Aras Pranckevicius b4df0e5a0b mac: enable more warnings in xcode project 2013-04-21 13:11:10 +03:00
Aras Pranckevicius 23046dbb21 fix more warnings 2013-04-21 13:10:51 +03:00
Aras Pranckevicius c1c78ae70e factor out duplicated code into ir_get_constructor_op, and fix switch case warnings 2013-04-21 13:00:44 +03:00
Aras Pranckevicius 897d53ecbc fix warnings 2013-04-21 09:43:56 +03:00
Aras Pranckevicius df3c5e5f89 fix warning 2013-04-21 09:37:53 +03:00
Aras Pranckevicius e5505a806d fixing more warnings and deduplicating code 2013-04-20 21:31:13 +03:00
Aras Pranckevicius 1db1f8127d fix an actual error found by compiler warnings. yay! 2013-04-20 21:20:22 +03:00
Aras Pranckevicius 5aff82b67e fix some compile warnings 2013-04-20 21:20:08 +03:00
Aras Pranckevicius b2f5540550 mac: update Xcode projects to recommended settings by Xcode 4.6 2013-04-20 21:11:19 +03:00
Aras Pranckevicius b3d5c377be cleanup PoolAlloc a bit more 2013-04-20 21:07:52 +03:00
Aras Pranckevicius 20735ffe6b cleanup 2013-04-16 15:32:26 +03:00
Aras Pranckevicius 6b33db19b6 tests: add generated surface shader test that uses mutable uniforms 2013-04-16 15:20:15 +03:00
Aras Pranckevicius 5fb9ff6651 fixes to mutable uniforms 2013-04-16 14:45:04 +03:00
Aras Pranckevicius ca0eba708c comments and indentation 2013-04-16 14:24:42 +03:00
Aras Pranckevicius d94a8a75d5 comments and indentation 2013-04-16 14:21:49 +03:00
Aras Pranckevicius 8e6733163f tests: add a test for mutable uniforms as produced before bit bitsquid merge 2013-04-16 14:07:00 +03:00
Aras Pranckevicius 37df364305 cleanup TPoolAllocator a bit more 2013-04-14 16:24:27 +03:00
Aras Pranckevicius fa88522f4f Remove global alloc/free functions, since they aren't quite working yet anyway.
Let's cleanup whole memory handling before we add them.
2013-04-14 16:13:55 +03:00
Aras Pranckevicius 0057a8d30f cleanup TPoolAllocator a bit 2013-04-14 16:10:16 +03:00
Aras Pranckevicius a0a5f6703d cleanup TPoolAllocator a bit 2013-04-14 16:06:37 +03:00
Aras Pranckevicius 205177663c cleanup 2013-04-14 15:52:43 +03:00
Aras Pranckevicius acd9e504cb refactor: cleanup initialization/shutdown flow 2013-04-14 12:57:48 +03:00
Aras Pranckevicius 06ea2374d3 refactor: move contents of OGLCompilersDLL/InitializeDll.cpp (lol at the name) into HLSL2GLSL.cpp 2013-04-14 12:47:40 +03:00
Aras Pranckevicius 1de50f08d0 tests: ability to exclude all GL stuff 2013-04-13 19:00:43 +03:00
Aras Pranckevicius ab9657070b tests: cleanup OpenGL in the rest runner 2013-04-13 18:33:46 +03:00
Aras Pranckevicius f426775dc4 fix some memory leaks 2013-04-13 18:32:12 +03:00
Aras Pranckevicius 878130c5d0 fix some memory leaks 2013-04-13 18:06:38 +03:00
Aras Pranckevicius 4147b558aa core: cleanup shutdown confusion; Hlsl2Glsl_Shutdown should be used. Removed Windows DllMain thingy. 2013-04-13 17:23:06 +03:00
Aras Pranckevicius aa30b4c3b8 cleanup 2013-04-13 16:48:32 +03:00
Aras Pranckevicius 8578c5f15a tests: update output after #26 merge 2013-04-13 16:48:22 +03:00
Aras Pranckevicius eabf34bf6f tests: update output after #26 merge 2013-04-11 17:37:08 +03:00
Aras Pranckevičius f7e51db5b8 Merge pull request #26 from mingwandroid/vertex-return-struct-in-struct
Allow nested structures to be returned from vertex shader.
2013-04-11 07:32:40 -07:00
Aras Pranckevicius 8bc1449cb4 add dummy unistd.h to unbreak windows build 2013-04-11 17:28:09 +03:00
Aras Pranckevicius 89bd2e801d vs: update projects to vs2010 2013-04-11 17:25:30 +03:00
Ray Donnelly a99f147de3 Allow nested structures to be returned from vertex shader. 2013-03-09 20:36:39 +00:00
Aras Pranckevicius 57c9f77231 tests: extend test to cover non-type-explicit initializers 2013-03-08 09:52:01 +02:00
Aras Pranckevicius 84ed8247f5 tests: update test output after uniform sorting changes 2013-03-08 09:33:14 +02:00
Aras Pranckevicius a959287e70 sort the uniforms list deterministically (by name instead of by address) 2013-03-08 09:32:50 +02:00
Aras Pranckevičius 838e84104c Merge pull request #19 from anchsm/master
Updated: Witness changes to hlsl2glsl:
* added GLSL 1.40 target
* fixed a bug where duplicates were left in uniforms list
* allow non-type-explicit constant initializers
2013-03-07 23:23:05 -08:00
Andy S 00fdbbfb66 Handling of #extension directives changes since my post-1.20 texture lookup changes, fix them to work with the new system 2013-02-28 12:46:55 -08:00
Andy S 1c4d326f53 allow non-type-explicit constant initializers.
e.g. where your hlsl could do:
	uniform float3 my_constants = float3(1, 2, 3);
now also allow this, which (afaik) is valid hlsl:
	uniform float3 my_constants = { 1, 2, 3 };
2013-02-27 16:01:49 -08:00
Andy S bbc3aa4a61 fix bug where hlsl2glsl was leaving duplicates in the uniforms list.
In buildUniformsAndLibFunctions(), std::unique only removes contiguous duplicates, so vector must first be sorted to remove them all.
2013-02-27 15:56:19 -08:00
Andy S 0d9fd2fb87 Add ETargetGLSL_140 and make it produce post 1.20 style texture lookups.
e.g. texture() and textureProj() instead of texture2D() and texture2DProj().
To do this I now (optionally) pass the ETargetVersion to Hlsl2Glsl_Initialize so it can choose what style of texture lookup functions initializeHLSLSupportLibrary() inserts into hlslSupportLib.
This means once initialized, every call to Hlsl2Glsl_Translate() has to use the matching ETargetVersion.
2013-02-27 15:54:13 -08:00
Aras Pranckevicius 13e0aeb98a tests: add expected failure test for shifts & some bitwise ops that are reserved in early GLSL versions 2013-02-24 21:41:09 +02:00
Aras Pranckevicius 09889ded04 Modified merge of pull request #16 from mawww-master:
* yyerror takes a const char* instead of a char*
* binary not is ~, not -
* enable some bitwise operations as supported features
* add missing outES test files
* fix empty body if handling
* fix cast on function call
* add struct initialisation by scalar support
* fix global-init test
* add (shotgun style) coverage mask support
* Fix inverted left and right shift operators
* fix EOpRightShiftAssign output, >>=, not ??=
* promote constant union to right type, plus fixes
* Add support for more semantics
* Add tests for tokenpasting and global initialization
* add execute permission to bison and flex
* various swizzle and arrays fixes.
* Fix bad order in HLSL matrix rows/columns, add definitions for mul(float.*, float.*)
* update tests results matrix non square
* fix in type construction for swizzle
* Add overloading tests
* handle upward vector promotion in TSymbolTableLevel::findCompatible…
* Add test for non-square matrix and vector promotion
* Fix vector upward promotion for single argument functions
* Add support for non square matrices
* remove unistd.h
* fix CMakeList
* hlsl2glsltest: add glut fallback version
2013-02-24 19:18:03 +02:00
Aras Pranckevicius 7d14add481 tests: change test a bit to account for a missing xll_matrixindex for non-square matrices 2013-02-24 19:02:58 +02:00
Aras Pranckevicius 888494a886 tests: move test out of vertex-failures; global inits are silently skipped instead on pre-1.20 2013-02-24 18:56:35 +02:00