Ben Vanik
367ca09f1d
Don't duplicate vf bindings.
2015-12-07 13:03:35 -08:00
Ben Vanik
df841acb70
Merge pull request #481 from sephiroth99/fixglsl
...
Fix compilation error of translated GLSL shader.
2015-12-06 23:51:12 -08:00
sephiroth99
f154b7ed59
Fix compilation error of translated GLSL shader.
...
Comparison of uvec2 and int is not possible, explicitly
use a zero-value uvec2.
2015-12-07 01:39:17 -05:00
Ben Vanik
280c0b35f6
Basic control flow skeleton and jumps implemented.
...
A-train's trees draw right now!
Helps a bit with #473 but still need to implement loops.
2015-12-06 11:44:22 -08:00
Ben Vanik
934b0d5bbc
Marking unimplemented translations as non-fatal.
2015-12-06 11:01:04 -08:00
Ben Vanik
c86e479214
Replacing old Shader with TranslatedShader.
2015-12-06 10:36:07 -08:00
Ben Vanik
083f936bbc
aL placeholder until loops are implemented.
2015-12-06 00:53:25 -08:00
Ben Vanik
51a8002629
Moving GL backend to new shader translator.
...
This seems to make a lot of things better, but may also break things.
Cleanup to follow.
2015-12-06 00:48:41 -08:00
Ben Vanik
295c62c7a4
Guarding protect-on-release behavior behind --protect_on_release.
...
Workaround for #456 until it can be identified.
2015-12-05 23:27:25 -08:00
Ben Vanik
81d0376106
Fixing use before check for null.
2015-12-05 23:24:40 -08:00
Ben Vanik
52f339cee4
Removing bogus assert.
2015-12-05 23:24:17 -08:00
Ben Vanik
2ece808f22
Shader playground screenshot.
2015-12-05 17:47:26 -08:00
Ben Vanik
2b3b423776
Mostly complete new GLSL translator (modulo flow control).
2015-12-05 17:44:06 -08:00
Ben Vanik
0058cae901
Adding pseudo code for all ucode ops from AMD docs.
2015-12-05 03:10:45 -08:00
Ben Vanik
4bac581d01
Merge pull request #475 from sephiroth99/varfix
...
VS2015 Update 1 fix + GLContext small cleanup
2015-12-03 22:39:19 -08:00
Ben Vanik
00240945fe
Cleanup for the latest clang-format version.
2015-12-03 19:52:02 -08:00
Ben Vanik
249b952de9
Adding some comments.
2015-12-02 17:37:48 -08:00
Ben Vanik
66cab7b76e
Update xcode premake
2015-12-02 12:16:23 -08:00
Ben Vanik
481e53dcae
Updating some documentation.
2015-12-02 12:16:23 -08:00
Ben Vanik
d0c840e28a
Merge pull request #477 from DrChat/compiler_fixes
...
Compiler fixes
2015-12-02 12:06:54 -08:00
Dr. Chat
bc1e7684ca
Pass rounding mode from i->flags for OPCODE_CONVERT
2015-12-02 14:03:15 -06:00
Dr. Chat
17d18f7154
Implement a few cases for Value::Cast/Convert
2015-12-02 14:01:28 -06:00
Dr. Chat
57a823ae39
Add (commented out) code to setup page protections for xex modules.
2015-12-01 19:53:17 -06:00
Dr. Chat
525d62d437
constant OPCODE_CONVERT and more cases for OPCODE_LOAD
2015-12-01 19:51:28 -06:00
Dr. Chat
873016f06f
Fix double-swap in constant load
2015-12-01 19:03:51 -06:00
sephiroth99
e8296a8608
ui/gl: GLContext: access directly class member
...
In ::EndSwap, dc_ class member was accessed through a function. Access
it directly like it is done elsewhere in the class.
It is also the only place where it is used, so remove the function in
question.
2015-11-30 22:59:30 -05:00
sephiroth99
f367c4ba7b
Fix compilation under VS2015 Update 1
2015-11-30 22:56:42 -05:00
Ben Vanik
82fe65475e
Fixing sqrt/rsqrt mixup.
...
Queue the 'how did this ever work?!'
2015-11-30 17:22:08 -08:00
Ben Vanik
cd50aac6d2
Skeleton SPIRV translator.
2015-11-29 19:45:55 -08:00
Ben Vanik
d2f7cc1602
Reworking translator code to be pretty sexy.
2015-11-29 16:55:42 -08:00
Ben Vanik
65130edaa1
First pass ShaderTranslator base type, able to disasm in msft style.
2015-11-28 16:19:04 -08:00
Ben Vanik
bea8870700
Shuffling old-style ucode.h under gl4.
2015-11-28 16:10:27 -08:00
Ben Vanik
eb3b7d0b75
Adding a tool to interactively assemble/disassemble shaders using XNA.
2015-11-28 16:10:26 -08:00
Ben Vanik
71b9995448
Skeleton SPIRV shader translator.
2015-11-28 16:10:26 -08:00
Ben Vanik
80c6e14cdc
Merge pull request #471 from sephiroth99/fixpremake
...
Premake: Fix usage of build scripts
2015-11-28 14:45:17 -08:00
sephiroth99
1b8b1d0350
third_party: Use latest elemental-forms
2015-11-28 14:17:08 -05:00
sephiroth99
b899bde55a
third_party: Use latest libav
2015-11-28 01:53:26 -05:00
sephiroth99
f4dae2335c
premake: Small fixes to various premake files
...
In particular, add the "src" group to apu/xaudio2 project, which was
missing.
2015-11-28 01:53:26 -05:00
Ben Vanik
d557c7aa0c
Merge pull request #474 from raven02/patch-1
...
Fix distance vector
2015-11-27 21:19:17 -08:00
raven02
44a1fa0c9c
Fix distance vector
2015-11-28 13:17:29 +08:00
Ben Vanik
51c3df1e2e
Making mtmsr & co synchronize the context.
2015-11-25 17:37:20 -08:00
Ben Vanik
57f2504e1f
Try python2 before python.
2015-11-25 15:22:53 -08:00
Ben Vanik
dfd92757a9
Adding CONTEXT_BARRIER to force the PPC context to synchronize.
...
This is just an annotation right now, as it's not actually needed.
2015-11-25 14:48:36 -08:00
Ben Vanik
54215d9fb4
Write shader binaries with --dump_shaders and load them in the compiler.
2015-11-24 20:45:23 -08:00
Ben Vanik
89172da4b7
Unplumbing program_cntl and simplifying shader loading.
2015-11-24 20:24:35 -08:00
Ben Vanik
6a546ebe4d
Shuffling spirv code so it's not tied to xe::gpu.
...
Will make it easier to use in standalone apps.
2015-11-24 19:49:05 -08:00
Ben Vanik
cf68d02142
Lots of cleanup in SpvEmitter.
2015-11-23 21:20:59 -08:00
Ben Vanik
e4d012911a
Rebased spirv-tools.
2015-11-22 19:15:09 -08:00
Ben Vanik
a7f6c1a09c
Prevent seeking while playing a trace.
2015-11-22 17:44:24 -08:00
Ben Vanik
e35fdff632
Porting glslang SPIRV stuff and cleaning some of it up.
2015-11-22 17:42:24 -08:00