22134 Commits

Author SHA1 Message Date
Unknown W. Brackets
ad17decf5c SoftGPU: Quick hack to fix scissor w/2x2 pixels. 2017-05-14 16:02:27 -07:00
Unknown W. Brackets
8ee92048c0 SoftGPU: Avoid rcp due to precision issues.
Causes artifacts in Sword Art Online, which draws a dialog box using
stretched UVs - rcp causes the edges to sample outside the original UVs.
2017-05-14 16:02:21 -07:00
Henrik Rydgård
d13fdfbf37 Merge pull request #9683 from unknownbrackets/ge-debugger
Minor GE debugger fixes
2017-05-15 00:02:19 +02:00
Unknown W. Brackets
94c138fd83 SoftGPU: Fix texture vertex preview in debugger. 2017-05-14 14:56:23 -07:00
Unknown W. Brackets
262c3483cf GE Debugger: Fix bias display for auto mip mode. 2017-05-14 14:56:17 -07:00
Henrik Rydgård
1f1ed5bb4d Merge pull request #9682 from unknownbrackets/softgpu-light
SoftGPU: Match GLES lighting better, use floats
2017-05-14 12:59:08 +02:00
Unknown W. Brackets
022de0d45a D3D11: Fix initialization of mipmaps. 2017-05-13 17:31:21 -07:00
Unknown W. Brackets
01076dd959 SoftGPU: Don't wrap negative positions.
Haven't fully verified this, but without this, Gods Eater Burst's bloom
doesn't work, since -1,-1 maps to 1023,1023 so everything is clipped.
2017-05-13 17:28:38 -07:00
Unknown W. Brackets
b2d3058386 SoftGPU: Correct fog for rectangles.
Gods Eater Burst uses fog in its bloom, with rectangles.
2017-05-13 17:27:34 -07:00
Unknown W. Brackets
1a56466865 SoftGPU: Match GLES lighting better, use floats.
Using floats simplifies things and also makes it faster.
2017-05-13 12:54:18 -07:00
Henrik Rydgård
996c97dfd5 Merge pull request #9681 from unknownbrackets/softgpu-center
SoftGPU: Correct for pixel centers
2017-05-13 20:46:31 +02:00
Unknown W. Brackets
86a1898732 SoftGPU: Correct rendering for pixel centers.
This should theoretically calculate everything more correctly.
2017-05-13 08:03:08 -07:00
Henrik Rydgård
8cff9f8bc9 Merge pull request #9678 from unknownbrackets/mipmaps
Make const mipmaps more consistent
2017-05-13 16:58:55 +02:00
Unknown W. Brackets
9e34601be2 SoftGPU: Correct texturing for pixel centers. 2017-05-13 07:53:39 -07:00
Henrik Rydgård
ec5b35b9f7 Merge pull request #9680 from LunaMoo/typofix
Correct typo in VertexDecoder
2017-05-13 16:40:36 +02:00
LunaMoo
5637ae1190 Fix typo in VertexDecoder 2017-05-13 16:27:26 +02:00
Unknown W. Brackets
6b0c9a5531 SoftGPU: Improve wsum recip SIMD.
A bit faster.
2017-05-13 06:56:33 -07:00
Unknown W. Brackets
7c526acc69 SoftGPU: Multiply S/T early via SIMD. 2017-05-13 06:49:27 -07:00
Unknown W. Brackets
10e511273a GPU: Flush on mipmap slope change. 2017-05-12 20:30:48 -07:00
Unknown W. Brackets
c4d1863ded GPU: Consistently bias const mip levels.
Since SLOPE is just a more complicated CONST, we can treat them the same.
2017-05-12 20:30:47 -07:00
Henrik Rydgård
f9b2272fd3 Update lang 2017-05-09 10:30:56 +02:00
Henrik Rydgård
6d6c1f66fc Merge pull request #9673 from unknownbrackets/softgpu
SoftGPU: Implement mipmapping
2017-05-09 09:35:34 +02:00
Unknown W. Brackets
6e4898d24f UI: Enable some settings for software rendering.
These now affect softgpu, so let's not disable them.
2017-05-08 21:03:10 -07:00
Unknown W. Brackets
50a775d31f SoftGPU: Calculate mip level based on float bits.
This is probably what the hardware does and much faster.
2017-05-08 20:43:02 -07:00
Henrik Rydgård
f06daba448 Merge pull request #9674 from unknownbrackets/vertexjit
Implement a few x86 vertexjit optimizations
2017-05-08 19:38:15 +02:00
Unknown W. Brackets
37a4d1308f SoftGPU: Round screencoords.
It seems like this is what the PSP does, or maybe this is just correcting
for floating point error...
2017-05-08 06:50:25 -07:00
Unknown W. Brackets
92ba91366c SoftGPU: Process mipmaps in texturing. 2017-05-08 06:50:25 -07:00
Unknown W. Brackets
3944a07bf7 SoftGPU: Fix separate mipmap cluts.
These should only be used for CLUT4.
2017-05-08 06:50:24 -07:00
Unknown W. Brackets
f5dd3b9716 SoftGPU: Refactor mask calculation and use SSE.
A tiny bit faster.
2017-05-08 06:50:23 -07:00
Unknown W. Brackets
1f2c2b6d42 SoftGPU: Improve texcoord rounding.
This fixes several obvious issues in Crisis Core, but it's still wrong
when texcoords go the other direction.  Need to use the deltas.
2017-05-08 06:50:23 -07:00
Unknown W. Brackets
7ffc891522 SoftGPU: Apply clamp/wrap in through. 2017-05-08 06:50:21 -07:00
Unknown W. Brackets
dacb776300 x86: Minor optimization for s16 through positions.
This takes it from 150% to 390% non-jit for pos only verts.
2017-05-07 12:20:56 -07:00
Unknown W. Brackets
0fe927aaa7 x86: Minor memory copy perf improvement.
This was actually 270% -> 340% non-jit for pos-only verts.
2017-05-07 12:18:47 -07:00
Unknown W. Brackets
b06e271ef3 x86: More optimal 4444 in vertexjit.
This was commented out, but works fine and goes from 320% -> 450% the speed
of non-jit for simple pos/col verts.
2017-05-07 12:14:06 -07:00
Henrik Rydgard
fd4ef48971 Windows debug builds: Only break on Vulkan validation warnings if a debugger is attached. 2017-05-07 18:09:09 +02:00
Henrik Rydgård
c55aa834b0 Merge pull request #9670 from unknownbrackets/vertexjit
Remove unused vertex decode steps, jit through s16
2017-05-07 17:01:56 +02:00
Henrik Rydgard
42a694368e Vulkan: Remove obsolete warning suppressions. Increase descriptor pool sizes. 2017-05-07 11:14:25 +02:00
Henrik Rydgard
d4e1fc8d93 More vulkan shutdown fixes 2017-05-07 11:08:09 +02:00
Henrik Rydgard
ff6fcc9179 More vulkan fixes 2017-05-07 10:53:04 +02:00
Henrik Rydgard
5974e0ee6d Work towards a clean vulkan shutdown. 2017-05-07 10:40:11 +02:00
Unknown W. Brackets
7699fa55de arm: Jit throughmode 16-bit texcoords.
It's popular, and this makes decoding such verts much faster.
2017-05-06 22:52:58 -07:00
Unknown W. Brackets
257f8dbbc6 GPU: Remove now-unused vertex decoder funcs.
We always convert to float now, so these functions are no longer used.
2017-05-06 18:55:16 -07:00
Unknown W. Brackets
6b3944d329 UnitTest: Correct vertex and jit tests.
We now convert texcoords to floats.
2017-05-06 18:45:04 -07:00
Henrik Rydgård
032e21b707 Merge pull request #9667 from unknownbrackets/win-host
Windows: Initialize WindowsHost in EmuThread
2017-05-05 16:46:56 +02:00
Unknown W. Brackets
793178c106 Windows: Initialize WindowsHost in EmuThread.
This seems like a more appropriate place, and a more appropriate thread,
for it to be initialized on.
2017-05-05 06:53:48 -07:00
Henrik Rydgard
80d4673cd5 Oops again.. sigh 2017-05-05 13:09:30 +02:00
Henrik Rydgard
d3ff35b2c0 Fix to partial restarts (when switching backends), plus misc. Helps #9666 2017-05-05 12:31:06 +02:00
Henrik Rydgård
e304325ed8 Merge pull request #9664 from LunaMoo/mouseStuff
Handle alt+tab and menu better when mouse is confined in-game.
2017-05-05 07:25:21 +02:00
LunaMoo
2a60f2e77c Handle alt+tab and drop down menu when mouse is confined and game is running 2017-05-05 02:26:24 +02:00
Henrik Rydgard
9284ea8375 Also memset. 2017-05-04 08:57:06 +02:00