Commit Graph

1432 Commits

Author SHA1 Message Date
Ben Vanik 45b2d2ceea Fixing xaudio2 memory type. 2015-03-29 11:26:16 -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 3a197705bb Special memory functions for system allocs. 2015-03-28 15:54:44 -07:00
Ben Vanik 71eabf7f2b Fixing some misc bugs. 2015-03-28 15:45:39 -07:00
Ben Vanik 6bf84d832f fresx and some vec128 constant prop. 2015-03-25 19:17:16 -07:00
Ben Vanik 40591a5376 Fixing builtins. 2015-03-24 20:00:51 -07:00
Ben Vanik 281abea955 Converting addresses in xe::cpu to 32bit. 2015-03-24 19:41:29 -07:00
Ben Vanik 3279776a80 Moving cpu/frontend/ppc/ to cpu/frontend/. 2015-03-24 08:37:00 -07:00
Ben Vanik 9281d62106 Moving cpu/runtime/ to cpu/. 2015-03-24 08:25:58 -07:00
Ben Vanik 29912f44c0 Moving alloy/ into xenia/cpu/ to start simplifying things. 2015-03-24 07:46:18 -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 6486299496 --flush_stdout to disable flushing. 2015-03-22 11:49:13 -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
Ben Vanik 559cda3215 Forcing depth clear - not right, but gets atrain working. 2015-03-22 01:07:14 -07:00
Ben Vanik b75e070d1b Fixing color/depth clear state. 2015-03-22 00:45:00 -07:00
Ben Vanik c8ddc48106 Fixing microprofile display. 2015-03-21 23:00:15 -07:00
Ben Vanik 2401bb7d03 Fixing 1px offset in tiles. 2015-03-21 22:52:35 -07:00
Ben Vanik fa58eaa317 Partial success on predicated tiling (depth buffer still bad). 2015-03-21 22:32:23 -07:00
Ben Vanik 7c3225ee41 Render target display in trace viewer. 2015-03-21 10:41:20 -07:00
Ben Vanik 494e918496 Fixing alpha testing. 2015-03-21 03:21:55 -07:00
Ben Vanik 704077d543 Removing unneeded glViewport. 2015-03-21 02:38:52 -07:00
Ben Vanik b406f49ae4 Extracting dest coords in copies; still not right. 2015-03-21 02:11:23 -07:00
Ben Vanik fe7de2c0ba Window offset goes here. Still broken due to copy issue. 2015-03-20 22:26:20 -07:00
Ben Vanik 6b7b57cecf Super basic vertex buffer display in trace viewer. 2015-03-20 21:54:52 -07:00
Ben Vanik 8ce30448f8 Index buffer display in trace viewer. 2015-03-20 20:41:58 -07:00
Ben Vanik f7d0c427be Implementing alpha testing. 2015-03-20 20:12:27 -07:00
Ben Vanik a82587f943 Fixing window offset and moving into state batch params. 2015-03-20 17:41:50 -07:00
Ben Vanik d695f637a8 int draw offsets. 2015-03-20 16:47:31 -07:00
Ben Vanik 92f1a7cb40 Show predication in trace viewer (colors not accurate yet). 2015-03-20 16:38:26 -07:00
Ben Vanik 22246cccb5 Whoops - my arbitrarily picked GPU command # collided -_- 2015-03-20 16:37:04 -07:00
Ben Vanik 0ea8f74cf8 Packet disassembler just for current command. 2015-03-15 21:22:23 -07:00
Ben Vanik b060f6f263 disasm set shader consts packet. 2015-03-15 20:59:21 -07:00
Ben Vanik 2157c8a2b2 Dropping a bunch of profiling - VB/IB upload is slow, that's about it. 2015-03-15 20:32:40 -07:00
Ben Vanik 1608878437 Trying to figure out shader flow control; not going so well :/ 2015-03-15 16:55:20 -07:00
Ben Vanik 35513ceea0 Constant slot pairing... maybe. 2015-03-15 14:21:09 -07:00
Ben Vanik 341a493bf9 Discovered new GPU opcode for constant setting. 2015-03-15 12:26:40 -07:00
Ben Vanik 4d61bac00f Assert shader constant bases. 2015-03-15 11:34:33 -07:00
Ben Vanik d803612184 Fixing recording of LOAD_ALU_CONSTANT. 2015-03-15 11:27:04 -07:00
Ben Vanik 795df80687 Possibly right const addressing and more shader instructions. 2015-03-15 11:20:19 -07:00
Ben Vanik b07cd49281 Fiddling with msaa scaling. 2015-03-15 02:28:39 -07:00
Ben Vanik 86faacdb87 LOAD_ALU_CONSTANT also taking a target type. 2015-03-15 02:05:26 -07:00
Ben Vanik 64c8d7ab98 MRTs and some more texture formats. 2015-03-15 02:05:01 -07:00
Ben Vanik b818adbf6d SET_CONSTANT for the other types. I think. 2015-03-15 01:18:00 -07:00
Ben Vanik 1a9ce6edfa Somewhere the file access mode is messed up... 2015-03-15 00:18:18 -07:00
Ben Vanik 613fdac71d Implementing one case of conditional shader execution blocks. 2015-03-14 23:55:33 -07:00
Ben Vanik ff4e9c32b6 XamContentFlush stub. 2015-03-14 23:54:52 -07:00
Ben Vanik 0117c39968 Proper XamEnumerate return when there are zero items. 2015-03-14 23:54:43 -07:00
Ben Vanik c6c24d50bd Extra copy dest formats. 2015-03-14 20:27:34 -07:00
Ben Vanik 1358d54ce9 Not sure msaa scaling is required anymore - odd. 2015-03-14 20:08:25 -07:00
Ben Vanik a70533f1c5 Fast seek forward in trace viewer. 2015-03-14 20:08:05 -07:00
Ben Vanik 55556e774f vs export mode 2 is ok. 2015-03-14 20:07:55 -07:00
Ben Vanik 6f0ca00651 Screen extent write; doesn't seem to do anything :/ 2015-03-14 16:50:54 -07:00
Ben Vanik 7192728fe0 Playing more with viewport stuff. 2015-03-14 16:11:55 -07:00
Ben Vanik d57306b473 Possibly fixing transforms. 2015-03-10 20:25:14 -07:00
Ben Vanik 5c33925995 Massive reworking of shader translator; for ALU ops only. 2015-03-08 22:08:53 -07:00
Ben Vanik 98194f0482 Assert on failure to compile glsl and unimplemented shader instrs. 2015-03-08 21:57:44 -07:00
Ben Vanik c28cbba00c Bigger textures in trace viewer. 2015-03-08 21:57:04 -07:00
Ben Vanik b9f9e1bb2b Blitter handles color/depth texture copies. 2015-03-07 16:12:52 -08:00
Ben Vanik d72610ba1b Custom blitter for final resolve. 2015-03-07 10:17:09 -08:00
Ben Vanik 2bce5ba0d9 Skip all predicated swaps - this may be too aggressive. 2015-03-06 22:40:42 -08:00
Ben Vanik 05239daecf Fixing tracing of games that do everything in nested indirect buffers. 2015-03-06 22:27:41 -08:00
Ben Vanik 14c6fbfba4 Adding safety checks, disabling vendor gl extensions by default. 2015-03-06 21:54:59 -08:00
Ben Vanik 84fa131f12 Hacking on render targets. Kind of work in simple cases, upside down :/ 2015-03-06 20:36:10 -08:00
Ben Vanik a1e68c0036 Experimenting with clip mode but it doesn't work like I think it does. 2015-03-06 19:27:45 -08:00
Ben Vanik 9db38ac860 Kind of fixing window coordinates. 2015-03-06 13:42:56 -08:00
Ben Vanik 05bdbbbe84 Fixing packet disassembler. 2015-03-06 12:24:46 -08:00
Ben Vanik b19c98fd9a Fixing small textures. This was painful.
Fixes #173.
2015-03-05 22:22:34 -08:00
Ben Vanik 4b5f77bde4 Special quad list line geometry shader.
Fixes #174.
2015-03-03 20:31:05 -08:00
Ben Vanik 41174b0e64 Hacktastic GPU trace viewer; textures, shaders, state, etc. 2015-03-01 12:26:11 -08:00
Ben Vanik 0f1e870d99 Fixing keyboard input in imgui. 2015-02-21 11:47:53 -08:00
Ben Vanik f013fde7b6 Merge pull request #172 from x1nixmzeng/master
Added API scanner tool
2015-02-21 11:46:41 -08:00
Ben Vanik 07c592942f Simple UI for frame seeking. 2015-02-21 11:19:00 -08:00
Ben Vanik 5227fe72b5 RequestSwap to force a swap from the GL thread. 2015-02-21 11:18:22 -08:00
x1nixmzeng 25f78ed325 Added API scanner tool
New tool for issue #171 which links to libxenia to dump the API usage
from packaged content
2015-02-21 17:33:56 +00:00
Ben Vanik 130c11a2ca GPU recording (--trace_gpu=file) and playback (gpu-trace-viewer file). 2015-02-20 07:47:06 -08:00
x1nixmzeng d091f12c81 Adjustments to wildcard engine
Fixed incorrect logic when checking at the end of the string - some of
the names had an added null character
Removed case sensitivity
2015-02-17 22:42:01 +00:00
Ben Vanik 17bc561045 Implement XMA* methods.
Fixes #156.
2015-02-16 22:22:42 -08:00
Ben Vanik 1204f35f1e --disable_framebuffer_readback 2015-02-16 21:58:24 -08:00
Ben Vanik 50b0746a26 XMA hardware spoofing when using direct register access.
This works for recent games that don't use the XMA* methods.
Upcoming CLs will add the XMA* method shims forthcoming.
2015-02-16 17:18:28 -08:00
x1nixmzeng 97ed221d8b Fixed writing data to the host device
New paths can now be created if they do not exist - this allows content
packages such as savedata to be written to disk
2015-02-16 23:04:10 +00:00
Ben Vanik 20f40a1da4 sprintf. 2015-02-16 10:07:46 -08:00
Ben Vanik 04b30fef99 Fixing warning. 2015-02-13 15:50:37 -08:00
x1nixmzeng 4f7761c5e2 Support for wildcard queries
Provides support for persistent wildcard file requests, as described in
#96
Also moved CanonicalizePath into common code (poly::fs)
2015-02-13 23:41:19 +00:00
Ben Vanik 3d980dd294 No-op FileDispositionInformation for NtSetInformationFile. 2015-02-13 12:00:34 -08:00
Ben Vanik a482d7968b Fixing bad log and warnings. 2015-02-13 11:29:07 -08:00
Ben Vanik a5eacc2972 Fixing polygon mode. 2015-02-13 11:28:06 -08:00
Ben Vanik 6598556446 Implementing RtlCompareString/RtlCompareStringN. Fixes #162. 2015-02-13 10:43:56 -08:00
Ben Vanik de5bad5fb2 Removing weird GPU masking. Fixes a lot of bad shader loads. 2015-02-13 10:14:28 -08:00
Ben Vanik 4915837c35 Fixes #163: scalar dest export regs. No more rainbow sky! 2015-02-13 10:12:19 -08:00
Ben Vanik c26329ece6 RG16 format. 2015-02-12 22:19:00 -08:00
Ben Vanik ea5175cab5 Fixing path issues for host FS. 2015-02-12 21:52:46 -08:00
Ben Vanik f8c7c97d54 Fix null deref. 2015-02-12 18:11:29 -08:00
Ben Vanik d22bfec53c Implementing XamContentGetCreator, always returning self for saves. 2015-02-12 17:31:07 -08:00
Ben Vanik 0ae79bc21a Implementing NtFlushBuffersFile stub. 2015-02-12 17:30:41 -08:00
Ben Vanik d4d88daa94 XamContentCreate. Seems to work! Fixes #152. 2015-02-12 16:57:53 -08:00
Ben Vanik 1ddb8f0c8f Content enumeration. 2015-02-12 16:57:52 -08:00
x1nixmzeng 0d0b406acf Resolving entry names
Some more string manipulation fluff
2015-02-13 00:26:02 +00:00
Ben Vanik dc731f6a31 Most of XamContent* methods, besides enumeration.
Progress on #152.
2015-02-12 14:16:43 -08:00
x1nixmzeng 9300551e31 Various fixes to resolving relative paths
Rewritten the canonicalization path logic to better handle complex
relative paths
2015-02-12 01:39:22 +00:00
Ben Vanik bde6cf0d85 Stubs for XamSessionCreateHandler+co; enough to make games skip it.
Fixes #150.
2015-02-11 16:41:10 -08:00
Ben Vanik c846ec30c3 Implementing XamGetExecutionId. 2015-02-11 16:26:07 -08:00
Ben Vanik 31bec99cbb Stubs for XLIVEBASE.
Fixes #159.
2015-02-11 15:24:47 -08:00
Ben Vanik 31b09f5aac XUsbcamGetState stub. 2015-02-11 13:40:45 -08:00
Ben Vanik 585e0b0e46 XamAlloc/XamFree. Fixes #153. 2015-02-11 10:16:54 -08:00
Ben Vanik dbe9b25a65 Logging for XMPCaptureOutput in #140. 2015-02-11 09:55:13 -08:00
Ben Vanik 90e489527a Enough of ObOpenObjectByName to handle basic usage + asserts for others.
Fixes #143.
2015-02-11 09:42:12 -08:00
Ben Vanik 2c49eec79f XamContentGetDeviceData stub and making XamContent* less schizophrenic.
Fixes #147.
2015-02-11 07:36:15 -08:00
Ben Vanik d1f1fa8951 Fixing NetDll_select. 2015-02-11 00:27:58 -08:00
Ben Vanik fa40308d09 Oh, that's why I did it - these aren't /actually/ HRESULTs. 2015-02-10 23:32:25 -08:00
Ben Vanik c34601469b Fixing overlapped return from XamUserReadProfileSettings. 2015-02-10 23:32:12 -08:00
Ben Vanik 2d08535672 Not sure why I did this. Next time self, leave a damn comment. 2015-02-10 23:01:55 -08:00
Ben Vanik e7dfbd5542 Make XexGetModuleHandle set ptr to 0 on failure. 2015-02-10 23:00:49 -08:00
Ben Vanik 57919b2a11 Seems like games are allowed to set the execute bit.
(it may just be masked away by the system)
2015-02-10 22:31:24 -08:00
Ben Vanik ce08c58610 Fixing 1555 color order. 2015-02-10 22:12:01 -08:00
Ben Vanik 5876196a2c Fixing input to return EMPTY. 2015-02-10 22:11:45 -08:00
Ben Vanik 94b8abd816 Fixing bad assert. 2015-02-10 22:04:16 -08:00
x1nixmzeng 4351f48c7b Resolve relative file paths
Implemented path normalization so relative paths can be correctly
resolved
2015-02-11 01:11:52 +00:00
Ben Vanik dbfd0b0f7b RG8 texture format. 2015-02-10 13:22:08 -08:00
Ben Vanik 9b7f64f9e6 XNotifyDelayUI stub. 2015-02-10 12:11:17 -08:00
Ben Vanik cc6d03ab2c Removing unneeded fs entry type. 2015-02-09 16:59:28 -08:00
Ben Vanik 78451a4e9e Cleaning up texture info/uploading. Edge cases still likely. 2015-02-09 14:10:24 -08:00
Ben Vanik 29719b8f4d Cleaning up some line ending issues. 2015-02-09 14:10:23 -08:00
x1nixmzeng dc11b88ef2 Minor usage fix
Fixes usage when running with a single unnamed argument
2015-02-09 20:13:09 +00:00
Ben Vanik eae8197025 Fixed XInputGetKeystroke. 2015-02-06 00:11:17 -08:00
Ben Vanik 3567cbc2cc ADD/MUL/SUBs. 2015-02-05 22:40:52 -08:00
Ben Vanik 908b95aeaa Probably working select. 2015-02-05 21:52:00 -08:00
Ben Vanik f128bf8670 Enough NetDll for games using sockets as IPC. 2015-02-05 21:26:28 -08:00
Ben Vanik fe3475b88c Fixing texture sizing. Probably. Fixes some DXT issues. 2015-02-03 23:46:12 -08:00
Ben Vanik c33613b2f8 assert_unhandled_case on ObReferenceObjectByHandle. 2015-02-02 23:07:21 -08:00
Ben Vanik 05f008d6ce Several XamContent* methods. 2015-02-02 23:07:20 -08:00
Ben Vanik c75a0337ae Fix XamUserCreateAchievementEnumerator. 2015-02-02 23:07:20 -08:00
Ben Vanik 969ef8f688 Fix XamEnumerate returns. 2015-02-02 23:07:19 -08:00
Ben Vanik 4f92df8918 XexGetModuleHandle(nullptr,) support. 2015-02-02 23:07:19 -08:00
Ben Vanik c06a675794 Fix XOVERLAPPED. 2015-02-02 23:07:19 -08:00
Ben Vanik 2b1dc9fa05 Ignore range check on autodraw. 2015-02-02 23:07:18 -08:00
Ben Vanik 36ba9aa3f3 Fixing rect-list tex coords. 2015-02-02 23:07:18 -08:00
Ben Vanik 5b08feb010 Playing with RTT. 2015-02-02 23:07:17 -08:00
Ben Vanik f9a3f0c48e Fix broken VirtualProtect reset on ClearWriteWatch. 2015-02-02 23:07:17 -08:00
Ben Vanik bba8f6391b Tweaking CriticalSection. 2015-02-02 23:07:16 -08:00
Ben Vanik ea1bdd2a24 Fixing vswprintf and adding vscwprintf. 2015-02-01 22:44:33 -08:00
Ben Vanik 487ce40123 No-op XUserGetContext. 2015-02-01 22:29:36 -08:00
Ben Vanik 59adde4d7f Negative size allocs. Probably. 2015-02-01 21:20:55 -08:00
Ben Vanik 493c3d7656 XMsgSystemProcessCall call. 2015-02-01 20:53:44 -08:00
Ben Vanik 93ded5ef0f Old style mfcr. 2015-02-01 20:49:47 -08:00
Ben Vanik 7b48332782 Reversing XUserSetPropertyEx signature. 2015-02-01 17:40:38 -08:00
Ben Vanik 5b759d387c Starting to reverse XGI app. 2015-02-01 17:25:18 -08:00
Ben Vanik cfcd6118c2 Fixing GetTickCount.
There's likely a better way to do this (on demand), but this works for now.
2015-02-01 09:05:35 -08:00
Ben Vanik 00e4a4fe1b Fix #include format. 2015-01-31 22:49:47 -08:00
Ben Vanik b8bb338564 Removing IVM. 2015-01-19 12:35:43 -08:00
Ben Vanik b6b27e621a Enough XMP to play (fake) play media. 2015-01-11 00:28:24 -08:00
Ben Vanik f5e12eba76 Digging into XMP stuff. Wish these were just normal functions. 2015-01-10 21:36:46 -08:00
Ben Vanik cf31969510 Update comment on VGT_MIN/MAX_VTX_INDX. 2015-01-09 00:33:11 -08:00
Ben Vanik e7ee2bf40d XamLoaderLaunchTitle 2015-01-09 00:31:56 -08:00
Ben Vanik 9f765e1291 XMsgStartIORequestEx 2015-01-09 00:26:47 -08:00
Ben Vanik 2bc951cd1e Stub for screen extent write event. 2015-01-09 00:26:40 -08:00
Ben Vanik dfba5943da Hide invalid interrupt dispatches. 2015-01-07 22:54:50 -08:00
Ben Vanik 9e1c3e1dfc Putting something at 0x40000000. 2015-01-07 22:24:59 -08:00
Ben Vanik 6eb9c3c9e5 Trying to find real register values. 2015-01-07 21:51:03 -08:00
Ben Vanik 662bbb6729 Experimenting with video stuff. 2015-01-07 21:47:46 -08:00
Ben Vanik 3658e710d2 Tweaks; timebase supports TBU. 2015-01-06 00:13:27 -08:00
Ben Vanik 672ecdf252 Some games open readonly paths for writes.. hmm 2015-01-05 23:25:32 -08:00
Ben Vanik 1a70606904 QueryFileSystemAttributes/QueryVolume for STFS/ISO. 2015-01-05 22:32:44 -08:00
Ben Vanik 58e71c7ff3 KeSetDisableBoostThread stub. 2015-01-05 22:32:22 -08:00
Ben Vanik 540740ca41 NtCreateFile/NtOpenFile cleanup. Now opens directories, too. 2015-01-05 22:32:15 -08:00
Ben Vanik 9e65e35a09 Some user profile settings. 2015-01-05 22:11:26 -08:00
Ben Vanik a82629efd5 Fix dots in path names. 2015-01-04 21:08:47 -08:00
Ben Vanik caad11b30b Support root-relative paths. 2015-01-04 20:57:12 -08:00
Ben Vanik 0b6b6a4189 Fixing buffer flushes. 2015-01-04 16:52:29 -08:00
Ben Vanik 0529fdb84d Basic hacky write watching for texture invalidation. Doesn't scale. 2015-01-04 16:28:42 -08:00
Ben Vanik 55c4488ab2 Fast-pathing MDI's that have only one draw. 2015-01-04 14:23:28 -08:00
Ben Vanik 4fcf9c6229 MultiDrawIndirect draw batching - now down to <20us per draw. 2015-01-04 11:20:42 -08:00
Ben Vanik eda38a7428 Misc tweaks. 2015-01-04 04:59:26 -08:00
Ben Vanik 56a04592d5 Removing fetch consts from state data. 2015-01-03 13:59:31 -08:00
Ben Vanik 2a082ff242 Tracking bytes used in the scratch buffer. 2015-01-03 13:50:11 -08:00
Ben Vanik 70c0c0fea1 Adding --vendor_gl_extensions flag to disable NV stuff. 2015-01-03 13:40:20 -08:00
Ben Vanik 76c41edfd6 Thread names. 2015-01-03 03:42:27 -08:00
Ben Vanik 3e61cc95cd Tracking whether state changes are compatible for batching. 2015-01-03 03:19:32 -08:00
Ben Vanik 07a82200f9 Shadow state to eliminate most redundant GL calls. 2015-01-03 02:57:58 -08:00
Ben Vanik 858f70549f Dangerous --vsync=false flag. 2015-01-03 01:32:59 -08:00
Ben Vanik c6f0ce7a1e Enabling microprofile webserver and adding a timeout. 2015-01-03 01:06:19 -08:00
Ben Vanik 718762746a A texture cache that never invalidates. 2015-01-03 01:05:56 -08:00
Ben Vanik 79179c28ef Experimenting with index ranges. Look unused by d3d :( 2015-01-02 18:21:39 -08:00
Ben Vanik 5236477043 Batch flushing buffer. 2015-01-02 18:01:48 -08:00
Ben Vanik bb15d2f62f Faster profiler drawing. 2015-01-02 17:44:15 -08:00
Ben Vanik aa22d07caf Super slow MicroProfile GL UI. 2015-01-02 17:26:02 -08:00
Ben Vanik 7629c0f4d2 Latest microprofiler in headless mode. 2015-01-02 10:37:58 -08:00
Ben Vanik 4a7eccf5dc Hiding annoying vertex attrib warning. 2015-01-02 03:01:32 -08:00
Ben Vanik 195b37ca70 Removing glFinish from pre-wait check. 2015-01-02 02:52:29 -08:00
Ben Vanik 420fd11771 --disable_textures flag. 2015-01-02 02:50:12 -08:00
Ben Vanik 1c068a601d Munging with viewport stuff. Nasty. 2015-01-02 00:27:05 -08:00
Ben Vanik be05ab6ffe New shader instrs. 2015-01-02 00:26:52 -08:00
Ben Vanik 6d159dc20d Adding cxx_compat for VS2013 build. Fixes #122. 2015-01-01 22:55:55 -08:00
Ben Vanik 8b8d692f06 Partial shader instr predication. 2015-01-01 22:55:10 -08:00
Ben Vanik ba0745abe2 Hack for weird pixel shader export. 2015-01-01 18:18:47 -08:00
Ben Vanik 009f4c4863 Fixing rectlist for weird cases. 2015-01-01 17:33:58 -08:00
Ben Vanik 2241795713 exp/sqrt shader ops, retain_prev hack. 2015-01-01 16:47:19 -08:00
Ben Vanik 4a11d5e6e2 Fixing ARGB4444 textures. 2015-01-01 16:30:42 -08:00
Ben Vanik 0e04e1c455 Draw tex coords for invalid textures. 2015-01-01 12:25:16 -08:00
Ben Vanik 825c09dd16 Viewport tweaking. Most stuff works better, now. 2015-01-01 11:59:23 -08:00
Ben Vanik 33a3e41eaf DXN textures. Probably. 2014-12-31 19:27:03 -08:00
Ben Vanik 7f4aef18d9 Quad/point list programs. 2014-12-31 19:27:03 -08:00
Ben Vanik 764e35435d Fixing texture unpack. 2014-12-31 19:27:02 -08:00
Ben Vanik 8a70316275 Tweaking. 2014-12-31 19:27:02 -08:00
Ben Vanik 8869d4620f Fixing clears. 2014-12-31 19:27:01 -08:00
Ben Vanik dfc260b86e Textures and such. 2014-12-31 19:27:01 -08:00
Ben Vanik 5b2672a1b8 GLSL shaders translating (modulo texture fetches). 2014-12-31 19:27:01 -08:00
Ben Vanik 58cff84550 Copying over the shader translator - generating d3d shaders now. 2014-12-31 19:27:00 -08:00
Ben Vanik 6573c87b8d --dump_shaders 2014-12-31 19:27:00 -08:00
Ben Vanik ea403b2164 Caching pipelines. 2014-12-31 19:26:59 -08:00
Ben Vanik 14ee211ea9 Experimenting with vertex pipeline. 2014-12-31 19:26:59 -08:00
Ben Vanik d2a3cba4f3 Fixing asserts. 2014-12-31 19:26:58 -08:00
Ben Vanik 39541aaaac Playing with buffers. 2014-12-31 19:26:58 -08:00
Ben Vanik f438ae1bfd Swapping. 2014-12-31 19:26:58 -08:00
Ben Vanik 9c6be1edba Deciphering copy packets. 2014-12-31 19:26:57 -08:00
Ben Vanik 3dffc72e59 Basic render target/framebuffer setup. 2014-12-31 19:26:56 -08:00
Ben Vanik 02d52167d3 GL context on command processor. 2014-12-31 19:26:56 -08:00
Ben Vanik e8de42d9ea Copying in generic shader code. 2014-12-31 19:26:56 -08:00
Ben Vanik 10ea5f1dbe Predication (I think). 2014-12-31 19:26:54 -08:00
Ben Vanik f8325512d7 GL4 command processor. 2014-12-31 19:26:54 -08:00
Ben Vanik 42e6a44624 Removing D3D. 2014-12-31 19:26:54 -08:00
Ben Vanik bbb7de6bff Red GL4.5 screen. 2014-12-31 19:26:53 -08:00
Ben Vanik 577ab0a4f1 Main window, empty GPU files. 2014-12-31 19:26:53 -08:00
Ben Vanik d839359b4a UI hacking. 2014-12-31 19:26:52 -08:00
Ben Vanik c1df273600 Moving delegate to poly. 2014-12-31 19:26:51 -08:00
Ben Vanik a0eebf8898 Removing old run loop/ref/core/etc. 2014-12-31 19:26:51 -08:00
Ben Vanik 1bd36db421 Missed a bit in dirty page removal. 2014-12-19 20:04:47 -08:00
Ben Vanik 1ae2f2a7af Fixing warnings under the new VC++. 2014-12-19 19:29:12 -08:00
Ben Vanik 756cfbb484 Removing dirty page table hack. 2014-12-19 17:29:27 -08:00
Ben Vanik 71fab4bbb7 Adding VS2015 support. 2014-12-19 17:09:39 -08:00
Ben Vanik de9b6bdc8f Moving xenia-run to just be xenia. 2014-12-19 16:50:27 -08:00
Ben Vanik a4141e84ce Sigh. 2014-11-08 11:38:07 -08:00
Ben Vanik 21b6c93db0 Tweaking GPU callbacks. 2014-11-08 10:13:08 -08:00
Ben Vanik 7bb61b8099 Fixing some shader stuff. What a mess. 2014-11-03 20:59:08 -08:00
Ben Vanik 05fb4c32eb Faking some texture types. 2014-11-03 19:14:50 -08:00
Ben Vanik 5be1b9458a Adding --max_draw_elements to make debugging easier for now. 2014-11-02 21:50:11 -08:00
Ben Vanik 9cb4fe03a4 TODO on RETAIN_PREV. 2014-11-02 09:45:28 -08:00
Ben Vanik 36f30b3374 Fixing overlapping texture fetches. 2014-11-02 09:45:13 -08:00
Ben Vanik 8c314225bb Make XPS happy and remove some GPU address munging. 2014-11-02 00:02:17 -07:00
Ben Vanik 3ed9685244 VdSetDisplayMode stubs. 2014-11-01 11:42:59 -07:00
Ben Vanik 4fabd20980 Better process type emulation. 2014-11-01 11:42:44 -07:00
Ben Vanik 8c171a6489 VdEnableDisableClockGating stub. 2014-11-01 11:40:07 -07:00
Ben Vanik 2ee42c2876 VdInitializeScalerCommandBuffer. 2014-11-01 11:12:31 -07:00
Ben Vanik bea90d65cf VdCallGraphicsNotificationRoutines (kind of). 2014-11-01 11:12:07 -07:00
Ben Vanik 4ecb95c6ad Over-notifying signin seems to make some games mad. 2014-10-30 20:50:18 -07:00
Ben Vanik 6053f1d35c Spamming some notifications on startup to unhang games. 2014-10-29 21:09:54 -07:00
Ben Vanik 1566b4c890 Basic hacky SetAffinity. 2014-10-28 22:10:40 -07:00
Ben Vanik 3daf362dfe XamUserAreUsersFriends 2014-10-28 20:54:51 -07:00
Ben Vanik b46a8b3618 Fixing some GPU->CPU addresses. 2014-10-28 20:32:15 -07:00
Ben Vanik 1f9eff2938 misc 2014-10-28 00:23:46 -07:00
Ben Vanik d7698368fc Stubbed XamInputGetCapabilitiesEx. 2014-10-26 20:26:23 -07:00
Ben Vanik 262712d4e9 Fixing livelock caused by lf stuff (or at least making it harder to hit). 2014-10-26 19:05:30 -07:00
Ben Vanik 5836a81abf XamVoiceIsActiveProcess stub. 2014-10-26 02:42:17 -07:00
Ben Vanik 13edfa95a5 Fake gamer tile reading. 2014-10-26 02:42:03 -07:00
Ben Vanik 3024b755da Tweaks to support missing user settings. 2014-10-26 02:41:48 -07:00
Ben Vanik 009ff4e80f XamLoaderTerminateTitle asserts now to make it easier to track death. 2014-10-25 11:42:54 -07:00
Ben Vanik 447b5bf316 Fixing xex loading into 4k pages. 2014-09-13 19:32:37 -07:00
Ben Vanik 0ad3ed0230 Fixing RtlMultiByteToUnicodeN. 2014-09-13 14:54:47 -07:00
Ben Vanik a337ce33ed Getting ppc tests building again (big surprise: they are failing). 2014-09-09 20:25:38 -07:00
Ben Vanik 8dcfe94d81 Fix cleanup of object table (double NtClose crash). 2014-09-01 10:03:52 -07:00
Ben Vanik f6c73819a3 Fixing add_carry (+typos). 2014-08-22 21:58:28 -07:00
Ben Vanik eebe68b77a Merge branch 'master' of github.com:benvanik/xenia 2014-08-22 18:39:34 -07:00
Ben Vanik 6f802c2432 Fixing many clang warnings. 2014-08-21 23:10:08 -07:00
Ben Vanik 52678ed1ef Removing dead ExportResolver code. 2014-08-21 21:53:06 -07:00
Ben Vanik e1b0388faf Splitting logging core into poly. 2014-08-21 20:26:55 -07:00
Ben Vanik 08b0226a16 Finishing unique_ptr'ing and fixing file memory management (for now). 2014-08-21 07:54:19 -07:00
Ben Vanik c59d053404 unique_ptr'ing things and removing some XECLEANUP. 2014-08-20 23:26:46 -07:00
Ben Vanik 244e8a8745 Removing the last of XEDECLARECLASS. 2014-08-20 22:50:10 -07:00
Ben Vanik 06f5b8cbbf Removing dep on xenia/types.h from alloy. 2014-08-20 22:37:01 -07:00
Ben Vanik cecf83b7b7 Removing xenia/malloc.*
Using standard memory functions now.
2014-08-20 22:22:47 -07:00
Ben Vanik 29dd4b9483 Create README.md 2014-08-20 11:17:05 -07:00
Ben Vanik d33cae1baf Auto swap for a few structs and shifting code around. 2014-08-19 22:55:09 -07:00
Ben Vanik fb98683ed3 Converting HID API to use be<> auto swapping type. 2014-08-19 22:50:21 -07:00
Ben Vanik 48a0e5c601 Shrinking alloy memory interface so that alloy-sandbox doesn't need xe. 2014-08-19 21:02:15 -07:00
Ben Vanik 76d524b655 Removing dead file. 2014-08-19 20:05:51 -07:00
Ben Vanik 41f3c92c25 Fixing build. 2014-08-19 19:41:29 -07:00
Ben Vanik b870914795 Removing use of MEMORY_BASIC_INFORMATION. 2014-08-18 22:12:21 -07:00
Ben Vanik 1c4dcd5e0e clang-format on most of kernel/ 2014-08-17 13:13:03 -07:00
Ben Vanik 854bcdb60a Moving mmap to poly, cleaning up devices. 2014-08-17 12:57:02 -07:00
Ben Vanik 24fe169f36 Last bit of string cleanup. string.h finally gone. 2014-08-17 11:48:29 -07:00
Ben Vanik 383d3acbb0 Some fs/ cleanup. 2014-08-16 21:36:01 -07:00
Ben Vanik fdab788017 Removing PAL. 2014-08-16 21:19:21 -07:00
Ben Vanik 6cb9ca432f More shared header cleanup. 2014-08-16 19:07:21 -07:00
Ben Vanik 4675161902 Header cleanup. 2014-08-16 18:31:54 -07:00
Ben Vanik 27bc4ba405 Removing XEINLINE*. 2014-08-16 18:19:35 -07:00
Ben Vanik f2a9fa3bf9 XECOUNT to countof. 2014-08-16 17:58:33 -07:00
Ben Vanik 187d0ad277 Removing XESAFERELEASE. 2014-08-16 17:33:24 -07:00
Ben Vanik 5b83cf5fd1 Moving around some math macros. 2014-08-16 17:18:20 -07:00
Ben Vanik 54ce9db743 Starting to remove some macros. 2014-08-16 16:57:00 -07:00
Ben Vanik ead74f2cdb More string switching. 2014-08-16 16:46:20 -07:00
Ben Vanik 7c5fa88661 More string swapping and cleaning up main(). 2014-08-16 16:34:13 -07:00
Ben Vanik 18ee972b47 Merge pull request #116 from wszechpolak/write-gamer-tile
Add XamUserWriteProfileSettings stub
2014-08-16 16:23:14 -07:00
wszechpolak 2c4c7e11dc Add XamUserWriteProfileSettings stub 2014-08-17 00:32:13 +02:00
Ben Vanik 0675282e19 Merge pull request #115 from wszechpolak/write-gamer-tile
Fix XamWriteGamerTile
2014-08-16 14:56:01 -07:00
wszechpolak 1f8cfb6fce Clean 2014-08-16 22:49:50 +02:00
wszechpolak b449e9f5cc Add X_ERROR_FUNCTION_FAILED 2014-08-16 22:49:13 +02:00
wszechpolak 1361fda884 Fix XamWriteGamerTile to make it support both sync/async requests 2014-08-16 22:47:08 +02:00
Ben Vanik e082d085d0 Merge pull request #114 from wszechpolak/write-gamer-tile
Added XamWriteGamerTile - should fix #109
2014-08-16 09:03:22 -07:00
wszechpolak 2f12585af9 Added XamWriteGamerTile - should fix #109 2014-08-16 12:17:43 +02:00
Ben Vanik 66d2336e38 More string conversion. 2014-08-16 02:50:08 -07:00
Ben Vanik a4dfc23abc Working on switching to std::string. 2014-08-16 02:30:23 -07:00
Ben Vanik 01f0b14250 Removing xe_thread_t. 2014-08-16 01:36:45 -07:00
Ben Vanik bca49bed4b Removing xe_mutex_t. 2014-08-16 00:56:50 -07:00
Ben Vanik 96fb484dd9 Removing unused crc32/file code from core. 2014-08-16 00:36:18 -07:00
Ben Vanik c84fcc70a4 Cleaning up kernel namespaces. 2014-08-16 00:25:13 -07:00
Ben Vanik bf48e9fbbd Part 2 of kernel cleanup: merging functions into shims. 2014-08-16 00:11:24 -07:00
Ben Vanik 916dc397ab Part 1 of kernel simplification/cleanup: removing externs. 2014-08-15 22:59:28 -07:00
Ben Vanik 56ce363ac5 Removing export impl. 2014-08-15 22:31:44 -07:00
Ben Vanik 48fbefa75e Fixing warnings/bug in NtQueryVirtualMemory. 2014-08-15 22:27:07 -07:00
Ben Vanik 3de39aaf10 Postmortem debug target now loads/scans the trace and inits the filesystem. 2014-08-15 22:02:10 -07:00
Ben Vanik c275562594 Mostly complete tracing. Probably a lot of bugs. 2014-08-15 22:02:08 -07:00
wszechpolak 50684f8f0d Implemented NtQueryVirtualMemory 2014-08-15 08:14:57 +02:00
wszechpolak b618f38e62 Pass base address without reference 2014-08-14 22:10:11 +02:00
wszechpolak b5826e0e94 Added stub of NtQueryVirtualMemory 2014-08-14 21:37:57 +02:00
Ben Vanik a5a0fd61e2 Full display info struct. 2014-08-08 15:24:48 -07:00
Ben Vanik b02ce5e95e Adding control flow simplification pass to compensate for lack of phi. 2014-08-06 14:19:42 -07:00
Ben Vanik f149a23367 XUsbcamCreate stub. 2014-08-05 13:06:33 -07:00
Ben Vanik b58b7c1783 Debug cleanup. 2014-08-05 12:51:01 -07:00
Ben Vanik 31f886d8d9 Fixing overallocation of thread stacks (expending heap). 2014-08-05 12:05:45 -07:00
Ben Vanik 1d7b08b85b dlmalloc does not fail when it runs out of memory... 2014-08-05 12:05:27 -07:00
Ben Vanik 2854841753 Better XMsg errors. 2014-08-05 10:44:55 -07:00
Ben Vanik 86241d0ae8 XNetCleanup/XNetRandom stubs. 2014-08-05 10:12:15 -07:00
Ben Vanik 3150f41ea0 oh ffs - properly suspending threads on creation. 2014-08-05 09:10:00 -07:00
Ben Vanik 2d4ae9ba64 XAudioEnableDucker 2014-08-04 22:02:28 -07:00
Ben Vanik 4e276695bf XamUserGetDeviceContext 2014-08-04 22:02:19 -07:00
Ben Vanik 8460afadd3 RtlUnicodeStringToAnsiString 2014-08-04 21:54:09 -07:00
Ben Vanik 64d8ee386b XamShowMessageBoxUI (that auto-advances). 2014-08-04 20:24:08 -07:00
Ben Vanik 66d2a8aec2 Setting XMA pointer to make errors clearer. 2014-08-04 18:55:00 -07:00
Ben Vanik e6275691cb KeEnableFpuExceptions stub. 2014-08-04 15:46:52 -07:00
Ben Vanik 296bb5c87a Dummy IRQL stuff to silence warnings. 2014-08-04 15:39:42 -07:00
Ben Vanik fd95858516 XamUserCheckPrivilege 2014-08-04 15:01:39 -07:00
Ben Vanik a98b9458b6 Adding XamVoice stubs. 2014-08-04 14:56:34 -07:00
Ben Vanik 35885f761c Misc fixes (overlapped IO, etc). 2014-08-03 22:25:38 -07:00
Ben Vanik 0a9d936f1e Better faking of the user profile. 2014-08-03 21:26:10 -07:00
Ben Vanik 57dda9c755 Factoring out XMsg app stuff. 2014-08-03 14:38:04 -07:00
Ben Vanik 19149bbba6 Stubbed out enumeration. 2014-08-02 21:37:11 -07:00
Ben Vanik f04c7b8661 ExAllocatePoolTypeWithTag 2014-08-02 16:23:02 -07:00
Ben Vanik 3f2baafb4b mmap, but ehh virtualquery... 2014-08-01 21:43:52 -07:00
Ben Vanik 4ad7662ef7 Fixing MMIO build on Windows. 2014-08-01 20:29:57 -07:00
Ben Vanik 0129a96225 Cross-platformizing MMIO stuff.
MSVC build likely needs some fixes.
2014-07-29 22:12:39 -07:00
Ben Vanik 0c5110ac3e Fixing warnings. 2014-07-17 20:52:56 -07:00
Ben Vanik ec4f41fec4 Moving byte order/memory access to poly. 2014-07-17 19:20:17 -07:00
Ben Vanik ce70978ef6 Starting to split up alloy/core.h. 2014-07-14 19:18:42 -07:00
Ben Vanik e9284dfaed More C++11ification. 2014-07-13 22:28:00 -07:00
Ben Vanik 0a250d5e91 C++11ing some things. 2014-07-13 21:53:31 -07:00
Ben Vanik 29e4c35c38 Removing alloy::tracing, as it's unused. 2014-07-13 21:25:58 -07:00
Ben Vanik 9437d0b564 Sprucing up some of alloy. 2014-07-13 21:15:37 -07:00
Ben Vanik 48425da8ff Sandbox getting close to running. 2014-07-12 22:59:16 -07:00
Ben Vanik 7ee79318e8 Fixing a bunch of alloy clang issues. 2014-07-12 21:52:33 -07:00
Ben Vanik 9b78dd977b Migrating atomic ops to std::atomic where possible and poly. 2014-07-12 17:48:54 -07:00
Ben Vanik bf882714d0 Cleaning up asserts and file/line macros. 2014-07-12 16:51:52 -07:00
Ben Vanik 1d54342930 Starting to cleanup includes a bit. Still a mess. 2014-07-11 18:03:35 -07:00
Ben Vanik 9031d5f4a4 Fix clang warnings / move some plat code into poly. 2014-07-10 22:51:27 -07:00
Ben Vanik c5f114018e Replacing alloy::Mutex with std::mutex. 2014-07-09 22:28:51 -07:00
Ben Vanik 6b197c4c92 Removing the debugger and dependencies. Needs rethinking. 2014-07-09 21:21:40 -07:00
Ben Vanik 0950e9f53c Calm some games down that hammer XMPGetStatus. 2014-07-08 16:02:42 -07:00
Ben Vanik eb7987a634 Setting default output values for pixel shaders. 2014-07-08 16:02:42 -07:00
Ben Vanik a5627ee25a Hide lock logging. 2014-07-03 12:59:08 -07:00
Ben Vanik 824d3c246f Prevent null/broken shaders from dying in d3dcompiler. 2014-07-03 12:58:56 -07:00
Ben Vanik 3b853f6201 WSAStartup tweak. 2014-07-03 12:58:27 -07:00
Ben Vanik a0cb341662 Trying really hard to keep games from spinning up networking. 2014-07-02 21:57:21 -07:00
Ben Vanik d5f27dbf34 Better arg passing for Execute and experimenting with APCs. 2014-07-02 15:39:49 -07:00
Fire30 15be1061d3 Fixed arguments for NetDll_send. 2014-07-02 18:17:09 -04:00
tj 13b3fa6f84 Fixed typo in NetDll_setsockopt logging. 2014-06-24 00:38:14 -04:00
Ben Vanik 4009eb1cd8 Fail out of XamContentCreateEnumerator. 2014-06-22 21:19:48 -07:00
Ben Vanik 9905380bd0 Steal one page of physical heap - this helps catch virt underflows. 2014-06-22 21:09:33 -07:00
Ben Vanik 7b98c748fa Fixing double allocation of memory x_x 2014-06-22 21:03:41 -07:00
Ben Vanik 71eb408d67 Various fiddlings. 2014-06-22 19:41:26 -07:00
Ben Vanik da590bd9cc Disable logging for TlsGetValue. 2014-06-20 20:44:53 -07:00
Ben Vanik 7936fa2dbd Fix constants in pixel shaders. 2014-06-20 20:44:39 -07:00
Ben Vanik 3845437276 Fix assert to allow 16 fetchers. 2014-06-10 21:06:36 -07:00
Ben Vanik 829b4f67bf ReadFile EOF. 2014-06-10 20:40:11 -07:00
Ben Vanik 95508273f6 Misc experimentation. 2014-06-08 23:11:09 -07:00
Ben Vanik 43a3b4f3c0 Support constant value movs to mmio memory. 2014-06-08 22:21:23 -07:00
Ben Vanik 264fc7cc91 Fix assert. 2014-06-08 22:21:05 -07:00
Ben Vanik 6e76c169d6 Proper(ish) VdSwap - fixes a bunch of things.
Caching is working a bit better, now.
2014-06-08 21:24:29 -07:00
Ben Vanik 8337820500 Fiddling with interrupt triggering - still not right. 2014-06-08 11:59:57 -07:00
Ben Vanik daa8a24173 Caching states. 2014-06-08 11:51:53 -07:00
Ben Vanik 6514eaa780 Disabling paged resource caching for now, as it's broken. 2014-06-08 11:25:10 -07:00
Ben Vanik 295910c3d8 Initial refactoring of gpu/.
Runs too fast - now there are ringbuffer wrapping issues.
2014-06-08 11:23:55 -07:00
Ben Vanik 4072640a64 Skeleton of new shared GPU files. 2014-06-02 19:24:33 -07:00
Ben Vanik beb5ee40ee Dirty page table. Not yet used. 2014-06-02 07:49:45 -07:00
Ben Vanik ddbebcda6c Cleanup memory. 2014-06-02 07:11:27 -07:00
Ben Vanik 0e3854555d Pure dynamic MMIO access. Prep for more complex GPU memory management. 2014-06-01 23:36:18 -07:00
Ben Vanik 3a8065b7b1 Vertex buffer caching.
Doesn't help, though, as buffers are weird. Need to rethink all of this.
2014-06-01 09:42:07 -07:00
Ben Vanik 2d173ea62b Caching index buffers. 2014-05-31 22:26:39 -07:00
Ben Vanik 19c48c7a90 Partial texture cache - doesn't invalidate yet. 2014-05-31 17:38:32 -07:00
Ben Vanik 529a1478d8 Sampler state caching. 2014-05-31 16:34:05 -07:00
Ben Vanik 6607606b15 Moving texture code into shared/separate files. Leaking a lot. 2014-05-31 15:42:21 -07:00
Ben Vanik e45fc3dc56 Reducing profiling forced swap frequency. 2014-05-31 08:13:13 -07:00
Ben Vanik 6c92e6a5c5 Increasing microprofile stack size, as some of these trees are deep. 2014-05-30 11:44:24 -07:00
Ben Vanik 0267efa5cc Always swapping the graphics system so that we see the profiler update. 2014-05-30 06:50:07 -07:00
Ben Vanik 328ece538a Fixing disabled profiling. 2014-05-28 21:46:43 -07:00