Commit Graph

169 Commits

Author SHA1 Message Date
dariosamo
e5727e7e2a GL4 Translator: ADDs/MULs/SUBs changed to XZ instead of XY. Basic implementation of loops for FLOW_CONTROL. 2015-06-21 14:09:41 -03:00
raven02
abda769c45 gl4: more color formats 2015-06-19 06:11:42 -07:00
sephiroth99
d708e2899f gl4: command_processor: fix locations in geometry shader header
The vertex shader outputs VertexData at location 1. Similarly, the pixel
shader's VertexData input is at location 1.

The geometry shader has both its input and output of VertexData at
location 0. Change it to location 1 so it matches the interface of
the other two shaders.
2015-06-18 02:01:36 -04:00
Drew DeVault
a064ba053e Add missing includes for cstring 2015-06-16 23:16:18 -06:00
Ben Vanik
cabf9d6261 Adding some GPU docs and creating output directories automatically. 2015-06-10 19:20:14 -07:00
Ben Vanik
a446d9c64a No need for thread-local shader translator as all reqs come from GPU CP. 2015-06-07 16:13:04 -07:00
gibbed
cc79934fee Added k_16_16_16_16. 2015-06-06 18:10:17 -05:00
sephiroth99
dd30330d18 gl4: fix usage of struct as input/output variables
Apparently, structs cannot be used as in/out variables. This causes
shader compile errors on AMD (nVidia doesn't seem to care I guess?).

Remove the structs and put each struct members as its own variable.
2015-06-05 00:11:23 -04:00
sephiroth99
1139a1b6ac gl4: fix nullptr dereference in GL4Shader::CompileProgram
A nullptr dereference will occur when the disassembly string is not
found, which will obviously happen on AMD. Check for the condition and
if it is not found, put a message indicating so.
2015-06-04 23:52:47 -04:00
sephiroth99
48ed0cb903 gl4: fix glGetInteger of GL_SAMPLER_BINDING
GL_SAMPLER_BINDING returns a single value. On AMD drivers, using the
indexed version of glGetInteger to get that value causes a
GL_INVALID_ENUM error. Use the non-indexed version.
2015-06-04 23:32:37 -04:00
Ben Vanik
b6728ce23e Removing additional varargs trampoline in shader translator. 2015-06-03 22:34:58 -07:00
Ben Vanik
954b67df78 Adding readback color format. 2015-06-02 22:46:53 -07:00
Ben Vanik
40a6a12800 Attempting to inline a lot of MMIO operations. Works for GPU stuff mainly. 2015-06-02 20:15:43 -07:00
gibbed
2a40512b74 Made a proper command-line flag out of disabling GL context resetting. --disable_gl_context_reset 2015-06-02 09:09:51 -05:00
Ben Vanik
c4ef5d4eb8 Allow AllocFixed of unreserved ranges. 2015-05-29 21:47:19 -07:00
gibbed
35bea36fc4 Added a magic value to XE_SWAP packets to make it obvious if there's an opcode collision. 2015-05-29 15:59:56 -05:00
Ben Vanik
8244409501 Refactoring to enable future time scaling, coordinated clocks, etc. 2015-05-26 22:20:58 -07:00
Ben Vanik
41cee3d337 Switching vsync to custom thread. 2015-05-25 21:12:27 -07:00
Ben Vanik
e3ddcd44e7 Minor fixes and fixing thread names. 2015-05-25 21:10:28 -07:00
Ben Vanik
7cabcad69e f5 now also clears cached framebuffers/targets. 2015-05-25 14:58:46 -07:00
Ben Vanik
f5a2b85d42 Switching to xe::mutex. 2015-05-25 00:52:21 -07:00
Ben Vanik
5cfb69434c Modules using object_ref. 2015-05-25 00:51:27 -07:00
Ben Vanik
fff1a7c132 Switching std::thread to XThread and hosting in object_refs. 2015-05-25 00:51:26 -07:00
Ben Vanik
1104f8e687 Header cleanups and prep. 2015-05-25 00:51:25 -07:00
Ben Vanik
37f1953466 Fixing the assert when window is minimized. For you Rick :) 2015-05-21 19:23:44 -07:00
Ben Vanik
f88bf33b4f Moving threads to XHostThread and making shutdown not crash. 2015-05-19 22:20:49 -07:00
Ben Vanik
2cacacea8a Texture fixup. 2015-05-18 19:08:30 -07:00
Ben Vanik
147a70b9c1 Rewriting memory manager. 2015-05-17 00:16:56 +01:00
gibbed
1bdb36eaa8 Added UploadTexture2D and UploadTextureCube to the profiler. 2015-05-13 22:02:16 -05:00
gibbed
c5c312eb8f ColorFormat::k_16_16_FLOAT support, maybe. 2015-05-12 06:51:32 -05:00
Ben Vanik
7a00b76a6e Debugger stuff, and changing to vcproj's/sln. 2015-05-09 17:48:12 -07:00
Ben Vanik
d1ee1512b9 Fixing most clang-format errors. 2015-05-03 10:27:50 -07:00
Ben Vanik
d9e4bc98e1 Code cleanup: removing cxx_compat.h 2015-05-02 10:55:22 -07:00
sephiroth99
fbb3878cf4 Remove cxx_compat.h header
Revert commits 6d159dc2 and 3f480d24. Visual Studio 2013 is not
supported anymore, so they are not needed.
2015-05-02 09:36:34 -04:00
Ben Vanik
e3220f7ae6 Code cleanup: moving poly/ into xenia/base/ 2015-05-02 03:42:51 -07:00
Ben Vanik
d76998915a Code cleanup: moving poly logging to xenia 2015-05-02 01:59:50 -07:00
Ben Vanik
f7ca026db0 Code cleanup: moving poly::ui to xe::ui 2015-05-02 01:50:19 -07:00
Ben Vanik
30f7effa73 Code cleanup: removing common.h 2015-05-02 01:25:59 -07:00
Ben Vanik
727ffaa122 Various fixes and utilties. 2015-05-02 00:26:03 -07:00
Ben Vanik
ec84a688e9 Starting to properly attribute virtual vs. physical memory accesses. 2015-03-29 11:11:35 -07:00
Ben Vanik
ab90e0932b Minor tweaks for crazy shaders. 2015-03-28 18:13:21 -07:00
Ben Vanik
59395318f3 Moving some util types into poly. 2015-03-22 22:12:37 -07:00
Ben Vanik
b392afbfae Basic cubemap support, though the sampling code is wrong. 2015-03-22 19:15:22 -07:00
Ben Vanik
7677d6ea9f Depth range. 2015-03-22 15:30:36 -07:00
Ben Vanik
8cfcea2309 32_32_F render target format. 2015-03-22 15:30:18 -07:00
Ben Vanik
f8db3774cb Hiding draw batch flush scope. 2015-03-22 11:41:46 -07:00
Ben Vanik
11b0c076bd Adding basic short-term vb reuse, removing index counting.
Regression for some games (that don't size their fetches), massive
improvement for others.
2015-03-22 11:35:23 -07:00
Ben Vanik
159ebb4295 Removing unneeded stencil register logic. 2015-03-22 09:37:55 -07:00
Ben Vanik
08e652410e Plumbing scalar params through swap. Hacky, but works for replay. 2015-03-22 09:31:55 -07:00
Ben Vanik
cef9a684cd Primitive reset. 2015-03-22 08:52:05 -07:00