Commit Graph

6816 Commits

Author SHA1 Message Date
Luke Usher efda454399
Merge pull request #2168 from NZJenkins/upscale-all
Upscale rendertargets and depth surfaces consistently
2021-03-20 10:24:26 +00:00
Anthony 4938b13bc5 Upscale rendertargets and depth surfaces consistently
Rather than just upscaling the backbuffer
Allows high resolution rendering in some games that rendered to textures
Fixes Amped shadows when upscaling, due to SetRenderTarget failure (probably mixing scaled and unscaled RT & Depth)
2021-03-20 12:17:37 +13:00
Luke Usher d9b994c357
Merge pull request #2164 from CookiePLMonster/vertex-cache-improvements
Vertex buffer cache improvements
2021-03-18 13:48:27 +00:00
Luke Usher 8c754be62a
Merge pull request #2165 from NZJenkins/fix-fse
Fix crash in fullscreen mode
2021-03-18 13:45:26 +00:00
Anthony 9d18a16370 Fix crash in fullscreen mode
Set a backbuffer format, since UNKNOWN is only accepted in windowed mode
2021-03-18 21:44:27 +13:00
Silent dd5196f3ca
Reduce the amount of state in CxbxVertexBufferConverter
Also removes some legacy code in XbVertexBuffer
2021-03-17 18:46:20 +01:00
Silent 977fdd360c
Use a compound key in the vertex cache to reduce false cache evictions
Now same data viewed with different vertex elements can coexist
in the cache instead of evicting elements continuously
2021-03-17 18:24:57 +01:00
Silent 609614f735
Const-qualify ComputeHash
Needed for an upcoming commit
2021-03-16 23:55:45 +01:00
PatrickvL 6db6256e45
Merge pull request #2157 from NZJenkins/tidy-mip-code
Tidy mip code and work around DXT crash with small textures
2021-03-13 08:24:07 +01:00
Anthony 4f91ca6838 fixup 2021-03-13 19:55:38 +13:00
Anthony 9c6e2656af Hoist blocksize out of the loop 2021-03-13 16:39:59 +13:00
Anthony d382722d38 co-locate compressed texture handling 2021-03-13 16:38:02 +13:00
Luke Usher 61e7e30e29
Merge pull request #2152 from ergo720/ignore_kbmo_opt
Added option to allow kb/mo input when the rendering window is unfocused
2021-03-12 11:29:18 +00:00
Anthony a414ee20b9 fixup style 2021-03-11 23:56:11 +13:00
Anthony b3768ba5ec Avoid crash by not attempting to convert compressed textures (which currently isn't supported) 2021-03-11 20:37:38 +13:00
Anthony 6332b9beaf Try to clarify the mip handling code
- Keep track of the mip width and height in pixels, without any regard for the texture format.
We need to know this to properly convert compressed textures (not that we convert them properly!)
The minimum mip width/height for compressed textures is 1 pixel, not 4 pixels.
- For compressed textures, bottom out the row pitch at the minimum block data size
2021-03-11 20:37:38 +13:00
ergo720 3ac793eb6e Added option to allow kb/mo input when the rendering window is unfocused 2021-03-10 20:06:18 +01:00
PatrickvL 72acea23b2
Merge pull request #2151 from NZJenkins/fix-backbuffer-format
Use the backbuffer format requested by the title
2021-03-10 18:11:03 +01:00
Anthony 55d81a3bfb fixup texture conversion warning 2021-03-10 20:14:48 +13:00
Anthony 0c8ae3f3e2 Always convert D3DFMT_A8 to ARGB
In D3D8, the RGB values appear to be undefined, and the Xbox uses 1.
Whereas in D3D9, the RGB values are 0
2021-03-09 19:49:12 +13:00
Anthony 3c393227be - Remove code that aligns the host backbuffer with the xbox backbuffer
- Remove code related to setting the backbuffer format
2021-03-09 19:49:12 +13:00
PatrickvL e4ef9c1985
Merge pull request #2156 from CookiePLMonster/format-improve
Further improve partition path functions
2021-03-07 18:11:43 +01:00
Silent 6abf4f0c66
Further improve partition path functions
* Close a possible edge case of "\\Partition" being present in the path
* Close a possible edge case of an invalid path being shorter than the string "\\Partition"
* Allow for partition formatting to work fine when EmuDisk has been relocated
2021-03-07 13:30:22 +01:00
Luke Usher 0217200a4c
Merge pull request #2155 from CookiePLMonster/fix-partition-formatting
Fix partition formatting
2021-03-06 20:22:17 +00:00
Silent f04c518d15
Modernize CxbxGetPartitionNumberFromHandle and CxbxGetPartitionDataPathFromHandle
Now consistently uses Unicode and supports long paths
2021-03-06 19:13:43 +01:00
Silent 35cd99a844
CxbxFormatPartitionByHandle: Use non-throwing std::filesystem functions 2021-03-06 18:37:10 +01:00
Silent 487ad3fa19
CxbxFormatPartitionByHandle: Do not recurse into subdirectories
Fixes a crash while formatting partitions occurring when
attempting to recurse into now-deleted subdirectories.
2021-03-06 18:28:10 +01:00
PatrickvL fb4ca717e4
Merge pull request #2154 from CookiePLMonster/section-unload-fixup
Fix XeUnloadSection errorerously zeroing memory
2021-03-05 23:03:08 +01:00
Silent 9ea0051d92
Xbe: Read section headers and library versions in one go 2021-03-05 22:56:10 +01:00
Silent 6d1e095a41
Fix XeUnloadSection errorerously zeroing memory
Makes Apex/Racing Evoluzione reach menus
2021-03-05 22:56:10 +01:00
NZJenkins 84cd4e3ba4
Merge pull request #2153 from NZJenkins/fixup-symbolcache
Measure the string length to get the correct size the string should be
2021-03-06 00:39:09 +13:00
Anthony 15d5397037 Measure the string length to get the correct size the string should be
Fix accidental use of string constructor with length, that causes null bytes to be included in the string
2021-03-06 00:07:32 +13:00
Luke Usher 23c8d37731
Merge pull request #2141 from RadWolfie/hide-sensitive-info
Hide Sensitive Fields from EEPROM gui
2021-03-03 10:39:32 +00:00
Luke Usher f32a2e7d19
Merge pull request #2150 from ergo720/arcade_ctrl
Add support for the arcade joystick device to the input gui
2021-03-03 10:38:22 +00:00
ergo720 5bfc595414 Add support for the arcade joystick device to the input gui 2021-03-02 22:20:26 +01:00
Luke Usher 018a8061ad
Merge pull request #2116 from RadWolfie/action-pr-labeler
Add Pull Request Labeler Support
2021-03-02 15:19:31 +00:00
Luke Usher 65959ec439
Merge pull request #2131 from RadWolfie/fix-linguist-stats
Fix Linguist Stats
2021-03-02 15:18:28 +00:00
PatrickvL e6d9c6de15
Merge pull request #2149 from NZJenkins/half-pixel-offset
Add D3D9 half-pixel offset
2021-03-01 08:11:24 +01:00
Anthony 72492527e5 Add D3D9 half-pixel offset
Fixes UI rendering issues especially text
2021-02-28 23:50:45 +13:00
RadWolfie 4361c7c6c9 add labeler workflow 2021-02-27 16:04:07 +00:00
RadWolfie 7f86dc80ae add labeler.yml file for prep pull request usage 2021-02-27 16:04:07 +00:00
PatrickvL 97b90fcfd7
Merge pull request #2147 from RadWolfie/tree-clean-up
Minor Clean up in Repo Directories
2021-02-27 09:19:27 +01:00
PatrickvL 807f95cae2
Merge pull request #2148 from NZJenkins/kong-title
Handle game title strings that aren't null terminated
2021-02-27 09:15:48 +01:00
Anthony a60c6aa701 - Adjust string format so we don't write more than 40 chars
- Align comment
2021-02-27 21:09:55 +13:00
Anthony 63e1e0d339 Handle game title strings that aren't null terminated
Fixes instability in King Kong since its title name uses all 40 characters
* Rename wszTitleName to wsTitleName
* Pass length to std::string constructor
* Ensure null termination when copying to m_szAsciiTitle
2021-02-27 20:21:59 +13:00
RadWolfie 00fa639a11 Move XADPCM.h file into audio folder 2021-02-27 02:38:47 +00:00
RadWolfie e30217f2ac Somehow CxbxLoader folder wasn't deleted in the rebased process 2021-02-27 02:38:47 +00:00
RadWolfie 6c70627ad2 Move and rename EmuNVNet files into its own network folder 2021-02-27 02:38:47 +00:00
PatrickvL 8f848f8dda
Merge pull request #2146 from NZJenkins/handle-handling
Implement IsEmuHandle by keeping a lookup of EmuHandle objects
2021-02-27 01:09:49 +01:00
Anthony de20deaa8a Detect when NtQuerySymbolicLinkObject is called without an EmuHandle 2021-02-26 20:59:06 +13:00