Commit Graph

3030 Commits

Author SHA1 Message Date
Dr. Chat 990a8baf1b Fix cases where GL_INFO_LOG_LENGTH returns 0. 2015-12-22 20:15:07 -06:00
Dr. Chat b49114bad6 GLContext: Keep track of robust access support for WasLost 2015-12-22 15:53:51 -06:00
Dr. Chat cde39953ab Fix TracePlayer::PlayTraceOnThread not signifying it's done with the trace if a break is pending. 2015-12-22 15:46:39 -06:00
Dr. Chat a4f6e60e20 Blitter::Draw assert on zero src texture 2015-12-22 15:44:51 -06:00
Dr. Chat ab93a6bf64 If last framebuffer texture isn't set, use active framebuffer otherwise don't draw. 2015-12-22 15:44:02 -06:00
Dr. Chat 919d3d080b Assert on context loss due to a TDR 2015-12-22 15:43:08 -06:00
Dr. Chat 59bee898f7 Always output the shader info log if it's not empty. 2015-12-22 14:41:18 -06:00
Dr. Chat 30eda6909f GLContext::WasLost - Determines if we lost the context due to a TDR or another outstanding event. 2015-12-20 21:13:51 -06:00
Dr. Chat 0c60cc5f48 Fix GLContext::AssertExtensionsPresent not clearing the context after use 2015-12-20 20:55:04 -06:00
Dr. Chat cf41a84fe3 Fix broken check against bool constants
Fix always terminating execution in cexece branches (these are sometimes followed by exece branches)
2015-12-20 20:53:31 -06:00
Ben Vanik 15816327b4 Renaming xe::cpu::frontend to xe::cpu::ppc. 2015-12-14 21:17:55 -08:00
Ben Vanik 9273359cdd Removing vestigial ContextInfo. 2015-12-14 20:57:14 -08:00
Ben Vanik 5e6c1f5a50 Removing some dead code. 2015-12-14 20:49:50 -08:00
Ben Vanik 826ea60890 gpu-trace-diff tool for running batches of diffs. 2015-12-13 16:59:43 -08:00
Ben Vanik 4d0bb1d26f Merge pull request #486 from DrChat/crlogic_fix
Fix complemented CR logic instructions
2015-12-13 16:36:01 -08:00
Dr. Chat 3ebd53ba11 Fix crandc/crnand/crnor/crorc not properly taking the complement of the CR fields. 2015-12-13 18:32:57 -06:00
Ben Vanik 7419e7eb4a Trace dump tool, for dumping pngs (and in the future more stuff). 2015-12-13 11:59:14 -08:00
Ben Vanik aec43ffb2e Adding STB image tools. 2015-12-13 11:23:23 -08:00
Ben Vanik 95b0ecf774 Sharing more of trace viewer code. 2015-12-13 11:22:47 -08:00
Ben Vanik 5db84105c4 Utilizing fallthrough for most shader CF, hopefully speeding things up. 2015-12-13 10:14:35 -08:00
Ben Vanik b5469b57ba Moving temporary registers to exec blocks. ps may still need to be shared. 2015-12-07 22:57:28 -08:00
Ben Vanik 85b1797b9e Workaround for nvidia bug with dynamic local memory access. 2015-12-07 22:55:17 -08:00
Ben Vanik ec113275dc Making texture swizzles dynamic. Seems to fix some color swap issues.
And probably exposes many more ;)
2015-12-07 22:39:33 -08:00
Ben Vanik 09022a6ad3 gl_FragCoord support. 2015-12-07 20:45:02 -08:00
Ben Vanik 1f773f14b3 Fixing vfetch_mini use. 2015-12-07 19:16:32 -08:00
Ben Vanik 522ff9d23e Alternate indirect buffer command. 2015-12-07 19:16:01 -08:00
Ben Vanik ed0b97813a Loops in shaders (no TDRs! woo!). 2015-12-07 13:03:57 -08:00
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