Commit graph

46 commits

Author SHA1 Message Date
GaryOderNichts
417cea7c1a latte-assembler: Support POP_CNT and ADDR for control flow instructions 2022-01-30 16:07:58 +00:00
James Benton
fed86e8d5c latte-assembler: Fix usage of deprecated format_to 2022-01-22 15:41:27 +00:00
James Benton
f50fea945d Update usage of deprecated fmt::format_to API. 2022-01-22 13:43:32 +00:00
James Benton
600337d414 Port to vcpkg 2022-01-22 13:43:32 +00:00
GaryOderNichts
f314c685b8 latte-assembler: Add additional CfInstProperties 2021-07-18 13:36:39 +01:00
James Benton
b2af3a2f32 Update glslang to 11.5.0 2021-07-18 10:13:38 +01:00
James Benton
801fc37656 Revert "Update libraries/cpp-peglib"
This reverts commit 4e4cd8a7d1.

peglib has changed a huuuge amount since the version we used and I cannot
get newer versions to correctly parse our grammar.
2021-07-17 15:47:59 +01:00
James Benton
4e4cd8a7d1 Update libraries/cpp-peglib 2021-02-21 11:16:52 +00:00
Brett Lawson
10c44a7c3e tools: Cleaned up to pass /W4 without warnings. 2019-12-09 11:42:46 -08:00
Brett Lawson
ebdda775ab global: Reduced usage of fmt/format.h to only where neccessary. 2019-12-08 08:19:12 -08:00
Brett Lawson
95ea679ac5 build: Improved MSVC project grouping. 2019-12-07 05:16:34 -08:00
James Benton
c9e1cb9e95 cmake: Change glslang to use add_subdirectory instead of externalproject. 2019-12-06 10:41:55 +00:00
Brett Lawson
9986a6929e latte-assembler: Fixed warning from implicit cast. 2019-12-05 07:01:16 -08:00
Brett Lawson
a85ef76d3e latte-compiler: Removed pragma optimize included in error. 2019-12-05 07:01:16 -08:00
James Benton
bf387e8a07 latte-assembler: Remove build dependency on libgpu.
Still uses it's headers though.
2019-11-22 11:47:21 +00:00
James Benton
b5a2fbab2f latte-assembler: Add prototype support for GLSL compiliation.
Depends upon glslang and AMD ShaderAnalyzer.

Could be fragile - there is no communication between glslang and AMD
ShaderAnalyzer, we just hope they do stuff predictably... :)
2019-11-19 22:35:00 +00:00
James Benton
060f4fd56a latte-assembler: Fix uniformVars default block index. 2019-11-19 11:41:39 +00:00
James Benton
57f8e01d54 latte-assembler: Rename compile -> assemble.
Maybe someone will add GLSL compiling to this tool and want to call it compile.
2019-11-19 11:41:27 +00:00
James Benton
1dc2c3a278 common: Change log.h to no longer include spdlog.h 2019-01-31 10:42:57 +00:00
Andrew Udvare
6ce9817620 cmake: Modify binary install path. 2019-01-29 08:43:51 +00:00
James Benton
f082d6038a cmake: Cleanup some library dependencies. 2018-12-15 08:36:59 +00:00
James Benton
18dd4a7d32 tools/latte-assembler: Fix build. 2018-11-06 22:19:00 +00:00
James Benton
e87f452497 Fix latte-assembler compile. 2018-09-29 13:25:52 +01:00
James Benton
343aaa08c2 Fix usage of COUNT_3 field. 2018-09-29 04:50:58 -07:00
Brett Lawson
13d32ef2ca latte: Rename MaxAttributes to MaxAttribBuffers 2018-09-26 02:26:21 -07:00
James Benton
0f56666572 tools/latte-assembler: Fix latte-assembler compile. 2018-08-27 16:28:11 +01:00
James Benton
8bcfa3e527 latte-assembler: Fix zero initialisation. 2018-05-15 17:29:54 +01:00
comex
593cb8737e Fix parseValueBool 2018-02-18 12:36:55 -08:00
James Benton
d186ab3d0c latte-assembler: Adjust some formatting. 2018-01-12 09:37:10 +00:00
James Benton
9550181b5e latte-assembler:
- add --align option.
- add a missing field to writeUniformVarsData.
- align text to 32bit.
2018-01-12 09:26:59 +00:00
aliaspider
8085f4acab latte-assembler: add more missing fields to the comment parser.
(uniformBlocks,uniformVars,initialValues,loopVars,samplerVars).
- fix sq_vtx_semantic and sq_pgm_resources_ps.STACK_SIZE.
2018-01-12 09:21:28 +00:00
aliaspider
9b12bfa39b latte-assembler: fix opcode priorities in grammar.txt 2018-01-12 09:21:27 +00:00
James Benton
1793c456de Add libraries/fmt.
Move spdlog to use external fmt rather than packaged fmt.
2017-09-19 11:54:12 +01:00
James Benton
5b766426ff latte-assembler: Fix unnecessary padding when there are no ALU or TEX clauses. 2017-06-15 18:40:52 +01:00
James Benton
2f9c50ce4c cmake: Fix latte-assembler regenerating the grammar header every build. 2017-06-15 18:40:52 +01:00
James Benton
cc4d146090 latte-assembler: Set shader mode based off whether uniform blocks were read from. 2017-05-11 20:36:42 +01:00
James Benton
d8093b24ae libgpu: Change SQ_CF_WORD0 to use BITFIELD for consistency. 2017-05-11 20:35:02 +01:00
James Benton
e9773ea478 latte-assembler: Remove unnecessary static_assert.
We now use CHECK_SIZE for these structs.
2017-05-11 19:53:46 +01:00
James Benton
b04a559c97 cmake: Fix latte-assembler grammar.h include. 2017-05-11 19:53:45 +01:00
James Benton
7383e01dc3 latte-assembler: Track inst src / dst usage to auto generate some registers. 2017-05-11 19:48:30 +01:00
James Benton
ed79519387 latte-assembler: Add support for TEX clauses. 2017-05-11 01:35:34 +01:00
James Benton
1424ffd602 latte-assembler: Fix opcode lookups for aliased instructions.
These are only aliased to play nice with AMD GPU ShaderAnalyzer.
2017-05-11 00:32:35 +01:00
James Benton
64474663af latte-assembler: Fix issue with LiteralValue -0.0f. 2017-05-11 00:32:28 +01:00
James Benton
5f6beb8eac latte-assembler: Clean up duplicated Gpr in grammar. 2017-05-11 00:32:15 +01:00
James Benton
fe96739b02 latte-assembler: Clean up exceptions. 2017-05-11 00:32:04 +01:00
James Benton
7c8466cc19 tools: Add a latte assembler.
First pass, a good start but could do with some improvements!
2017-05-10 18:06:03 +01:00