Commit Graph

5976 Commits

Author SHA1 Message Date
Anthony Miles e36907542b Avoid consuming some keypresses in the GUI 2019-08-02 22:12:23 +12:00
Anthony Miles 11f005b14c Remove extra UnlockFS() call 2019-08-02 19:42:47 +12:00
Anthony Miles 5e1851fcad Preserve caller esp value 2019-08-02 19:42:47 +12:00
PatrickvL f62030a548
Merge pull request #1683 from LukeUsher/vertex-shader-register-tweaks
Vertex shader register tweaks
2019-07-29 11:30:09 +02:00
Luke Usher 31253815e1 Define constants + fix typos 2019-07-29 09:19:10 +01:00
Luke Usher ab3b8f84ae Fix potential stack corruption, thanks revel8n 2019-07-28 14:26:43 +01:00
Luke Usher cdd962e5a4 3925 alpha test hack 2019-07-28 14:26:43 +01:00
Luke Usher d2e65f0e67 Fix vOffset/vScale overwritten by nv2a constants 2019-07-28 14:26:19 +01:00
RadWolfie ec3f97e4f0
Merge pull request #1682 from NZJenkins/lockfs_perf
Improve LockFS performance
2019-07-27 20:47:49 -05:00
Anthony Miles 99f4c460b8 Improve LockFS performance 2019-07-27 11:22:41 +12:00
Luke Usher 35ce3e7fb1 Treat all vertex registers as 'User Defined' 2019-07-25 16:23:39 +01:00
Luke Usher ae4dbce372 Comment out warnings that pollute the log 2019-07-25 12:11:59 +01:00
Luke Usher 6ced176977 Cleanup + R12 oPos readback 2019-07-25 07:39:24 +01:00
Luke Usher bcc7f0c650 Remove R12 replace hack: VS2_X has enough registers 2019-07-25 07:14:53 +01:00
Luke Usher b62b8341cc 3925 fog disable hack 2019-07-24 18:37:03 +01:00
Luke Usher 6326602232 Writeback vertex attributes 2019-07-24 18:34:39 +01:00
Luke Usher fb871f283f Prevent new R registers being trashed 2019-07-24 15:36:56 +01:00
Luke Usher 893a25baf2 Pass default values at SetVertexShader time 2019-07-24 15:26:50 +01:00
Luke Usher 5bfb98c312 Read registers not present in vertex buffers from SetVertexData4f registers 2019-07-24 14:39:58 +01:00
Luke Usher 8d8e256697 Update SetVertexData4f to write it's input to shader constants 2019-07-24 12:00:32 +01:00
Luke Usher b5cec3e8fc Cleanup Register Usage detection + Remove incorrect Xbox->PC mappings (From D3D8to9) 2019-07-24 11:52:19 +01:00
Luke Usher 33b63c2e9e
Removed Gitter Link from Readme
The community has migrated over to Discord and Gitter has not been used for a very long time now.
2019-07-23 08:44:10 +01:00
PatrickvL 1b2fad6816
Merge pull request #1680 from LukeUsher/determine-default-backbuffer
Fix when CreateDevice doesn't call SetRenderTarget
2019-07-21 15:38:13 +02:00
Luke Usher 931970068c Fix when CreateDevice doesn't call SetRenderTarget
This allows for the Xbox backbuffer location to be properly determined, even in titles that do not call
SetRenderTarget at all!

Tt also fixes the situation where games didn't call SetRenderTarget internally within CreateDevice.

This works because GetRenderTarget always returns the assigned render target, which immediately after
CreateDevice, is *always* the backbuffer.

This allows us to reliably determine the default backbuffer and depth stencil, even without a CreateDevice call.

This fixed a regresion in Shin Megami Tensei: Nine , and has potential to fix some more blackscreen issues.
2019-07-21 12:37:06 +01:00
RadWolfie d4f8ec93bf
Merge pull request #1679 from ergo720/error_log_lv
Add error log level to logging system
2019-07-20 22:20:45 -05:00
ergo720 fd4bcb39ff Added error log level 2019-07-20 21:53:15 +02:00
RadWolfie b20185b797
Merge pull request #1678 from LukeUsher/loadvertexshaderprogram
Allow LoadVertexShaderProgram to work in games without their own CreateVertexShaderFunction
2019-07-20 14:49:37 -05:00
Luke Usher 4a3f9a19a4 Allow LoadVertexShaderProgram to work in games without their own CreateVertexShader function 2019-07-20 11:56:13 +01:00
PatrickvL a1731b6bfc
Merge pull request #1676 from RadWolfie/fix-uem-str
Fix Universal Error Message Output
2019-07-20 11:26:12 +02:00
RadWolfie e646eada8d fix universal error message output 2019-07-20 01:47:46 -05:00
ergo720 7f70c88917 Fix a bug in KiTimerMtx.Acquired (#1675) 2019-07-20 00:36:53 +02:00
RadWolfie 0c334de398
Merge pull request #1674 from ergo720/d3d_resource_crash_fix
Fix a crash in JSRF
2019-07-19 15:08:09 -05:00
ergo720 19984db979 Fix a crash in JSRF 2019-07-19 21:17:42 +02:00
RadWolfie 99fc299611
Merge pull request #1672 from LukeUsher/fix-shader-constants
Fix shader constants: It's per-function not per-XDK
2019-07-19 13:56:51 -05:00
PatrickvL 69ebe1b4ba
Merge pull request #1669 from LukeUsher/work-around-for-missing-destroyresource-patch
Workaround & LOG_TEST_CASE for missing DestroyResource patch
2019-07-19 10:08:17 +02:00
PatrickvL 8cba41744f
Merge pull request #1670 from LukeUsher/ltcg-fixes
Improve some LTCG specific patches
2019-07-19 10:07:38 +02:00
PatrickvL eaa87ae6cb
Merge pull request #1673 from NZJenkins/perf_tweaks
Add sleeps/waits in various places
2019-07-19 10:03:37 +02:00
Anthony Miles 0ea66ea0d8 Avoid tight loop in LockFS. Fixes Prince of Persia 2 slowdown during loading screen 2019-07-19 18:42:59 +12:00
Anthony Miles 63996f87eb Avoid tight loop in interrupt thread. Alleviates some stutter in Panzer Dragoon Orta 2019-07-19 18:41:50 +12:00
Anthony Miles 9c4277ae9b Avoid tight loop in DirectSound thread worker 2019-07-19 18:41:14 +12:00
Luke Usher fdaa102dc8 Fix shader constants: It's per-function not per-XDK 2019-07-18 22:20:55 +01:00
RadWolfie 1edbc208e5
Merge pull request #1671 from RadWolfie/hotfix-GenerateMixBinDefault-func
HOTFIX: GenerateMixBinDefault check for lpwfxFormat is null pointer
2019-07-17 17:02:22 -05:00
RadWolfie 64f1948dd9 hotfix GenerateMixBinDefault check for lpwfxFormat is nullptr 2019-07-17 16:21:29 -05:00
Luke Usher 87aa125af4 Fix another LTCG variant of CreateDevice 2019-07-17 22:20:59 +01:00
Luke Usher 511fd017f5 Add two more LTCG specific patches 2019-07-17 19:44:16 +01:00
Luke Usher abe82f0336 Update to be informational only 2019-07-17 14:58:51 +01:00
Luke Usher 4190b81431 Add an early-out for non-zero internal reference count 2019-07-17 10:12:01 +01:00
Luke Usher bd3569ff95 Workaround & LOG_TEST_CASE for missing DestroyResource patch 2019-07-16 21:17:35 +01:00
PatrickvL f9a3fde976
Merge pull request #1666 from LukeUsher/fix-reset-bug
Fix a bug with D3DDevice_Reset that could trigger a black screen
2019-07-16 22:01:17 +02:00
Luke Usher 53ea7f102d Fix a bug with D3DDevice_Reset that could trigger a black screen on resolution change 2019-07-16 20:50:13 +01:00