Commit Graph

24771 Commits

Author SHA1 Message Date
Unknown W. Brackets
36f298dbcb x86: Use OS for cores on Mac OS X too. 2018-09-13 20:36:31 -07:00
Unknown W. Brackets
9351146a28 x86: Use OS to detect core count.
On Windows and Linux, at least.  This should be more reliable than what we
used before.
2018-09-13 19:51:47 -07:00
Henrik Rydgård
6d0ed4ad07
Merge pull request #11382 from AreaScout/compile_option
Add: -ffast-math compiler option to anything other then Intel
2018-09-12 10:33:23 +02:00
AreaScout
468c508b3a Add: -ffast-math compiler option to anything other then Intel 2018-09-11 19:12:09 +00:00
Henrik Rydgård
6ffa5bdcaf
Merge pull request #11380 from unknownbrackets/softgpu
GPU: Handle bad fog params as large signed vals
2018-09-10 09:45:38 +02:00
Unknown W. Brackets
797327eecd GPU: Handle bad fog params as large signed vals.
From tests, it seems they're just treated as valid exponents.

Using 65535 since that's the range of depth, can't think of a game using a
larger value for a fog parameter, probably never even this large.
2018-09-10 00:28:02 -07:00
Henrik Rydgård
e2a9f6acdd
Merge pull request #11379 from unknownbrackets/softgpu
Correct interactions between fog, doubling, and color testing
2018-09-10 09:23:11 +02:00
Unknown W. Brackets
817b5d7c1c SoftGPU: Support fog on 3D rectangles. 2018-09-09 23:59:48 -07:00
Unknown W. Brackets
022670d882 GPU: Apply fog before color test.
Hardware tests confirm the fog result is what's color tested.
2018-09-09 23:59:48 -07:00
Unknown W. Brackets
8eb011c22d GPU: Clamp after color doubling.
This is needed for blending to be correct - it blends a clamped value.
2018-09-09 20:27:39 -07:00
Unknown W. Brackets
703181607e GPU: Apply color test after doubling. 2018-09-09 20:09:48 -07:00
Unknown W. Brackets
8cdead90f9 SoftGPU: Preserve stencil inside logic op func.
Cleaning things up to make it easier to translate.
2018-09-09 18:11:37 -07:00
Unknown W. Brackets
772ed30288 SoftGPU: Avoid extra lookup of old stencil. 2018-09-09 17:00:12 -07:00
Henrik Rydgård
ae73b8f45d
Merge pull request #11377 from unknownbrackets/lighting
D3D11: Fix pow(0, 0) lighting handling
2018-09-09 23:24:46 +02:00
Unknown W. Brackets
016d6ba764 D3D11: Fix pow(0, 0) lighting handling.
This was previously fixed in GLES.
2018-09-09 10:25:58 -07:00
Unknown W. Brackets
332788d0b5 GPU: Clean up some shader id flag usage. 2018-09-09 09:59:42 -07:00
Henrik Rydgård
204bfc7441
Merge pull request #11371 from unknownbrackets/mpeg-minor
Mpeg: Avoid reading outside available bytes
2018-09-09 10:50:48 +02:00
Henrik Rydgård
47cccc0ff0
Merge pull request #11370 from unknownbrackets/tex-replace
Replacement: Cut down on parsing for large inis
2018-09-09 10:50:05 +02:00
Henrik Rydgård
7a5ec714c3
Merge pull request #11374 from unknownbrackets/texcache
TexCache: Fix texture alignment in GLES
2018-09-09 10:48:23 +02:00
Unknown W. Brackets
b05f75f667 D3D9: Set alpha mask reference in uniforms.
Just so we don't have surprises later if we implement masking.
2018-09-08 20:05:19 -07:00
Unknown W. Brackets
4dafb163a3 D3D11: Split color test out by component.
Not working correctly together.  See #10629.
2018-09-08 20:03:26 -07:00
Unknown W. Brackets
97773d3dd5 TexCache: Fix texture alignment in GLES.
We must align to 4 bytes, and we aren't always aligned to 16 anymore, so
we must check when dealing with swizzle.
2018-09-08 19:00:30 -07:00
Unknown W. Brackets
a5f61e798e Mpeg: Avoid reading outside available bytes.
When we're just looking for the size or offset, it shouldn't be necessary
to load the stream, so hopefully we can avoid it.
2018-09-08 12:14:17 -07:00
Henrik Rydgård
959a999575
Merge pull request #11365 from AreaScout/master
Add: Touchscreen event support for SDL2
2018-09-08 18:04:11 +02:00
AreaScout
1fb111c2bb Add: Touchscreen event support for SDL2 2018-09-08 07:15:31 +00:00
Unknown W. Brackets
1b4f1d7d4e Replacement: Cut down on parsing for large inis. 2018-09-07 21:36:59 -07:00
Henrik Rydgård
fd6c3145d5
Merge pull request #11364 from unknownbrackets/gpu-failed
Core: Reset working graphics backend on restart
2018-09-07 07:13:23 +02:00
Unknown W. Brackets
120cf59237 Core: Reset working graphics backend on restart. 2018-09-06 18:31:09 -07:00
Henrik Rydgård
d7bf2841d1
Merge pull request #11362 from unknownbrackets/gpu-failed
Core: Don't consider graphics failed on shutdown
2018-09-06 22:00:39 +02:00
Unknown W. Brackets
fb8f408db0 Core: Don't consider graphics failed on shutdown.
On some devices, we'll lose context or get a resize mid-startup, so make
sure we don't detect that as a graphics crash.
2018-09-06 07:31:15 -07:00
Henrik Rydgård
8ac50b232d
Merge pull request #11360 from unknownbrackets/gpu-failed
Core: Log more on graphics backend failures
2018-09-06 09:18:46 +02:00
Unknown W. Brackets
db93a08fc9 Core: Log more on graphics backend failures.
Just so we can tell for sure in logs what's happening.
2018-09-05 23:13:15 -07:00
Henrik Rydgård
f42065ed3b
Merge pull request #11357 from unknownbrackets/ui-minor
UI: Automatically forget pinned deleted paths
2018-09-05 10:22:23 +02:00
Unknown W. Brackets
2388be544f Debugger: Fix crash in softgpu with no texaddr yet. 2018-09-04 21:54:25 -07:00
Unknown W. Brackets
246234b0b7 UI: Automatically forget pinned deleted paths.
Also, resolve the paths in case of symlinks.
2018-09-04 21:53:20 -07:00
Henrik Rydgård
562c5f6485
Merge pull request #11346 from unknownbrackets/startup-fail
Core: Track graphics startup failures and cycle
2018-09-04 21:14:15 +02:00
Unknown W. Brackets
f87dcefdd8 Android: Buildfix for CMake.
May affect other arm64 too.  Also, ifdef out a check in case of compiling
with GL 3 headers (to fix a Linux buildbot issue.)
2018-09-03 18:41:52 -07:00
Henrik Rydgård
d23d58c406
Merge pull request #11332 from AreaScout/master
Add: Get user-preferred locale from OS (linux only)
2018-09-02 21:35:45 +02:00
Henrik Rydgård
caaec8c4cc
Merge pull request #11347 from unknownbrackets/save-minor
Savedata: Show confirm save without faded icon
2018-09-02 21:33:41 +02:00
Henrik Rydgård
18a6fac915
Merge pull request #11348 from unknownbrackets/ui-minor
UI: Fix state screenshot size on pause screen
2018-09-02 21:33:18 +02:00
Henrik Rydgård
e4562ccc93
Merge pull request #11350 from unknownbrackets/texture-dxt
TexCache: Optimize DXT3/DXT5 decode to single pass
2018-09-02 21:32:24 +02:00
Henrik Rydgård
4f26ac6e65
Merge pull request #11351 from unknownbrackets/android-minor
Add .nomedia files to system and textures
2018-09-02 21:20:15 +02:00
Unknown W. Brackets
f65edc20a3 TexCache: Optimize DXT5 alpha lerp.
This makes the overall DXT5 decode about 8% faster.
2018-09-02 11:41:27 -07:00
Unknown W. Brackets
d715ed8fba Core: More consistently use directory constants. 2018-09-02 10:27:11 -07:00
Unknown W. Brackets
d1c5668612 Android: Add .nomedia files to system and textures.
Due it on all platforms when saving textures to encourage including
.nomedia in texture packs.
2018-09-02 10:19:08 -07:00
Unknown W. Brackets
3f35221f3b TexCache: Avoid masking out alpha for DXT3/DXT5.
A little faster.  Also refactor colors a bit to be more readable.
2018-09-02 09:53:31 -07:00
Unknown W. Brackets
8ae2b1e6fb TexCache: Optimize DXT3/DXT5 decode to single pass.
This is significantly faster on Vulkan, and in other situations where
we're decoding directly to uncached memory.
2018-09-02 09:30:46 -07:00
Henrik Rydgård
9d8cfb3944
Merge pull request #11349 from unknownbrackets/arm-build
Core: Match up NOEN define usage a bit more
2018-09-02 14:05:03 +02:00
Unknown W. Brackets
e246a946c3 Core: Add flag to prevent graphics cycling.
For debugging graphics crashes.
2018-09-01 19:59:13 -07:00
Unknown W. Brackets
f906fbed35 Core: Track graphics startup failures and cycle.
If the graphics driver segfaults, or some plugin segfaults, let's try a
different one next time.  This gives better hope of starting up next time.
2018-09-01 19:59:13 -07:00