Commit graph

13566 commits

Author SHA1 Message Date
Unknown W. Brackets
a9da3618ba Upload the color/stencil buffers on FBO creation.
Fixes pausing or loading a savestate in Star Ocean (previously your
character became invisible until the screen panned.)
2014-06-17 23:55:09 -07:00
Unknown W. Brackets
171a865b37 Support reversing normals in software transform. 2014-06-17 23:29:33 -07:00
Unknown W. Brackets
d4c416a437 Use the pre-world normal in software proj mapping.
Fixes #6081.
2014-06-17 23:27:19 -07:00
Unknown W. Brackets
2d63a74aeb Allow DrawPixels (uploads) to handle alpha.
Doesn't update stencil, but at least it updates alpha.

This was fixed to 1.0 before because we had blending enabled by accident
during DrawPixels().
2014-06-17 23:10:38 -07:00
Unknown W. Brackets
359f72078d Disable vsync when exiting the game.
Not sure why, but with some drivers not doing this makes the process burn
cpu usage when back in the menu.  Fixes #6351.
2014-06-17 01:06:25 -07:00
Henrik Rydgård
565bb98db1 Merge pull request #6350 from unknownbrackets/gpu-blend
Avoid blitting for a bunch of gpu blending modes
2014-06-17 09:54:57 +02:00
Henrik Rydgård
85a4af721d Merge pull request #6342 from unknownbrackets/xinput-fix
Avoid xinput pad jitter resetting axis state
2014-06-17 09:23:39 +02:00
Unknown W. Brackets
6e751f8092 Use shader blend for min/max when unsupported. 2014-06-17 00:20:06 -07:00
Unknown W. Brackets
640c58a892 Reorganize alphablend state mapping logic. 2014-06-17 00:20:05 -07:00
Unknown W. Brackets
17f5acd8b0 Support more src alpha doubling modes.
These prevent the need for more blits.
2014-06-17 00:20:05 -07:00
Unknown W. Brackets
143ad92afd Convert blending to doubling in more cases.
We're not doubling the alpha, so all these cases are safe regardless of
the alpha value.
2014-06-17 00:20:04 -07:00
Unknown W. Brackets
256436b594 Support fixed/fixed blending without a blit. 2014-06-17 00:20:04 -07:00
Sacha
7bbdabdfa2 glBindFragDataLocation is not needed. Thanks HdkR. 2014-06-17 15:52:46 +10:00
Sacha
9961ef1ba7 Qt: Buildfix USING_GLES2 and not MOBILE_DEVICE 2014-06-17 15:30:03 +10:00
Sacha
53642d3cc4 Qt: Optimisations for ARM desktop/tablet hosts. 2014-06-17 14:23:36 +10:00
Henrik Rydgård
f5b664daac Merge pull request #6347 from thedax/restore-stencil-test
Oops, restore the deleted stencil test option since we haven't decided its fate yet.
2014-06-17 00:47:41 +02:00
The Dax
c54b84aeb3 Oops, restore the deleted stencil test option since we haven't decided its fate yet. 2014-06-16 18:43:22 -04:00
Henrik Rydgård
fafd3711a8 Merge pull request #6285 from thedax/disable-ui-options
GameSettingsScreen: Disable a bunch of options when software rendering is enabled.
2014-06-16 21:00:55 +02:00
The Dax
f6ee9c77f4 Buildfix. 2014-06-16 14:18:49 -04:00
The Dax
92882b6384 Throw "Disable Alpha Test" into the pile of options to be disabled. 2014-06-16 14:18:49 -04:00
The Dax
f0dc4f7693 Do it for post-processing and resolution too, to be consistent. 2014-06-16 14:18:49 -04:00
The Dax
120e5e8cbe Disable more stuff, and use cached booleans instead.
Conflicts:
	UI/GameSettingsScreen.cpp
2014-06-16 14:18:49 -04:00
The Dax
98ebe26e33 GameSettingsScreen: Disable a bunch of options when software rendering is enabled.
They don't do anything when software rendering is enabled, so there's bound to be confusion caused by these options continuing to be enabled.

Conflicts:
	UI/GameSettingsScreen.cpp
2014-06-16 14:18:48 -04:00
Unknown W. Brackets
d1357e5bc8 Fix another mistake in color test masking. 2014-06-16 02:12:08 -07:00
Unknown W. Brackets
a28354f072 Fix dumb typo. 2014-06-16 01:42:19 -07:00
Unknown W. Brackets
3793bd5a02 Avoid xinput pad jitter resetting axis state.
Should take care of #5526.
2014-06-16 01:37:20 -07:00
Unknown W. Brackets
9b67594a1d Linux buildfix. 2014-06-16 01:04:53 -07:00
Henrik Rydgård
f061cb4c0f Merge pull request #6341 from unknownbrackets/gpu-minor
Support alpha and color test masks on desktop/gles3
2014-06-16 10:02:20 +02:00
Unknown W. Brackets
95e4e04f8d Fix a crash in the GE debugger on matrix tab. 2014-06-16 00:36:16 -07:00
Unknown W. Brackets
982f0416a2 Pre-mask alphatest value as a small optimization.
Might cause small behavior difference on gles2 (without bitwise ops.)
2014-06-16 00:35:30 -07:00
Unknown W. Brackets
2038bc5527 Support alpha / color test masks on desktop/gles3.
Won't work on GLES 2, though...
2014-06-16 00:33:48 -07:00
Henrik Rydgård
f0f8f7207d Merge pull request #6338 from unknownbrackets/gpu-blocktransfer
Don't write bytes between width/stride during block transfers
2014-06-16 09:12:41 +02:00
Unknown W. Brackets
3fea3e1293 Respect "nearest" filtering setting for fbs. 2014-06-15 19:42:24 -07:00
Unknown W. Brackets
107df3b838 Reuse existing buffer matching for MotoGP hack. 2014-06-15 19:34:57 -07:00
Unknown W. Brackets
a54cefc138 Only download width bytes, not stride bytes.
Fixes #6330, MotoGP not rendering properly with simulate block transfers.
2014-06-15 19:33:32 -07:00
Henrik Rydgård
43bddd8067 Merge pull request #6336 from unknownbrackets/texcache
Separate framebuffer sampling params from tex
2014-06-16 00:52:20 +02:00
Henrik Rydgård
104e62d412 Merge pull request #6337 from unknownbrackets/vsync
Update vsync on resize, and before first FBO
2014-06-16 00:31:21 +02:00
Unknown W. Brackets
e762689ea8 Update vsync on resize, and before first FBO.
May take care of #4440.
2014-06-15 15:19:49 -07:00
Unknown W. Brackets
fdd759909b Auto-disable shader blending after 48 per frame.
Should prevent possible massive slowdowns from log reporting.
2014-06-15 13:48:06 -07:00
Unknown W. Brackets
40f13d51e7 Separate framebuffer sampling params from tex.
This way we don't need to reset params on the texture or worry about
things like that.  We always force on the framebuffer anyway, so this is
simpler.

Also don't enable mipmaps when using a framebuffer, since they don't make
sense currently.
2014-06-15 13:34:58 -07:00
Unknown W. Brackets
f6649794df Respect max texture level in GE debugger preview. 2014-06-15 10:31:16 -07:00
Henrik Rydgård
07b13f680c Merge pull request #6335 from unknownbrackets/debugger
Add texture level preview to GE debugger
2014-06-15 19:05:13 +02:00
Unknown W. Brackets
913914a4c1 Fix some type conversion warnings. 2014-06-15 10:01:54 -07:00
Unknown W. Brackets
d7e5b7956e Add buttons to select texture level in ge debugger. 2014-06-15 10:01:32 -07:00
Unknown W. Brackets
eaf3288304 Add debug interface for non-L0 texture preview. 2014-06-15 09:30:37 -07:00
Unknown W. Brackets
c6c48aef42 softgpu: Align spline patches, keep buffer.
Fixes misalignment warning on 32-bit.
2014-06-15 09:00:49 -07:00
Unknown W. Brackets
062d747cee Fix vram mirror issue on 32-bit.
Fixes #6249.
2014-06-15 08:59:35 -07:00
Henrik Rydgard
e3bbf26731 Improve input event handling. Can now map volume keys on Android without issues. 2014-06-15 13:04:59 +02:00
Henrik Rydgard
7febcd5d91 Have the Native* input functions return boolean to match new interface.
This is preparation for being able to tell the app that we handled the key or not.

This will make it possible to map android hardware keys like volume without them misbehaving.
2014-06-15 12:15:06 +02:00
Henrik Rydgard
ee1d16cb1d Use sincosf where available (linux) 2014-06-15 12:06:02 +02:00