Commit Graph

2068 Commits

Author SHA1 Message Date
Unknown W. Brackets
b9f4cc4481 Double colors only when texturing, and after test.
Per tests.
2014-01-12 11:45:29 -08:00
Unknown W. Brackets
4f585fd7a6 Fix a few minor typos. 2014-01-11 22:59:52 -08:00
Unknown W. Brackets
4ea4554ddf softgpu: detect a vram-relative display addr. 2014-01-11 09:51:32 -08:00
Unknown W. Brackets
55fe5a950e softgpu: rotate uvs in throughmode. 2014-01-11 09:51:09 -08:00
Henrik Rydgård
4d7b652f4f Merge pull request #5079 from raven02/patch-22
When mipmap disabled , maxlevel always 0 (set earlier)
2014-01-11 03:25:21 -08:00
raven02
271b680737 When mipmap disabled , maxlevel always 0 (set earlier) 2014-01-11 16:26:36 +08:00
Unknown W. Brackets
d8e9ed73ab Fix a code alignment warning.
I'm not really clear on why this code would not be 4 byte aligned,
but cmake says it ain't on iOS, so okay.
2014-01-10 22:21:31 -08:00
Unknown W. Brackets
79864a5ee0 Fix some initialization order warnings. 2014-01-10 22:21:24 -08:00
Henrik Rydgard
ad951bc0d4 Symbian buildfix 2014-01-06 19:21:27 +01:00
Henrik Rydgard
43a93f086d Enable depth buffer copies on GLES3 devices without breaking any desktop 2014-01-06 18:03:57 +01:00
Henrik Rydgard
aaf219d063 Only copy the depth buffer if the framebuffer size matches. 2014-01-05 13:00:57 +01:00
Unknown W. Brackets
2a56c76f55 Fix crash in non-buffered rendering. 2014-01-04 17:29:00 -08:00
Unknown W. Brackets
202842d690 On desktop, blit depth when not cleared.
Workaround for #1283, makes Jeanne d'Arc playable.
2014-01-04 11:27:01 -08:00
Henrik Rydgård
431395eceb Merge pull request #4905 from raven02/patch-23
Bind framebuffer to 0 if framebuffer status is incomplete
2014-01-03 03:47:42 -08:00
Henrik Rydgård
9281fccacd Merge pull request #4939 from unknownbrackets/texcache
Add two options to adjust the texture cache
2014-01-02 08:32:59 -08:00
raven02
164a6846b0 Indentation fix 2014-01-02 20:24:57 +08:00
raven02
5f5220b608 Revert acf4562 2014-01-02 20:17:58 +08:00
Henrik Rydgård
946b4c4a60 Merge pull request #4974 from raven02/patch-31
Exclude viewport restore for PowerVR GPU
2014-01-02 03:22:52 -08:00
raven02
6467c70f08 Exclude PowerVR chipset only 2014-01-02 19:21:22 +08:00
raven02
e84a7b1586 Viewport restore only for Adreno GPU 2014-01-02 12:17:41 +08:00
Tony Wasserka
4c720ee375 softgpu: Fix typo in TransformUnit. 2014-01-02 02:10:12 +01:00
Unknown W. Brackets
0f5aae9c49 Cleanup differences in DirectX9 texcache code. 2014-01-01 15:49:10 -08:00
Unknown W. Brackets
e477c50ea1 Fix #4922, kill age checks in texcache. 2014-01-01 15:49:10 -08:00
Unknown W. Brackets
e24f45b9a4 Add ini options to configure the texture cache. 2014-01-01 15:49:09 -08:00
Henrik Rydgard
91531a9792 Get rid of "ATIClampBug", it's not a bug, it's just lack of full non-pow-2 texture support 2014-01-02 00:09:01 +01:00
Henrik Rydgard
a9832fb79a Set cleardepth the traditional way on desktop. 2014-01-01 23:40:35 +01:00
W.MS/王京
032f40b5a1 fix the typo, maybe
LOL
2014-01-02 01:30:24 +08:00
raven02
5d05b4f16a ClearBuffer(): Clear depth to 1.0 2014-01-01 22:49:50 +08:00
Henrik Rydgård
e5e17fbc6e More include cleanup. Hoping for very slightly faster compile times.. 2013-12-30 10:49:05 +01:00
Henrik Rydgård
079d9c04dd Merge pull request #4942 from unknownbrackets/warnings
Fix some warnings, possibly fix Symbian
2013-12-30 00:28:48 -08:00
raven02
d59351d3b0 Mipmapping only enable when texture scaling disable 2013-12-30 14:28:28 +08:00
Unknown W. Brackets
ca78f49e5b Attempt to fix Symbian compilation. 2013-12-29 16:21:16 -08:00
Unknown W. Brackets
db77dcd149 Fix some includes on Windows/etc. 2013-12-29 15:59:36 -08:00
Henrik Rydgård
87f203a5b8 More include untangling 2013-12-29 23:44:35 +01:00
Henrik Rydgård
79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets
e6b2d00a2f Avoid reseved identifiers like _SP, etc.
R_SP is not that bad.
2013-12-29 14:25:34 -08:00
Henrik Rydgård
5dbc26aec8 Merge pull request #4937 from unknownbrackets/gpu-minor
Ignore material update when no vertex color, softgpu vertex preview
2013-12-29 13:49:24 -08:00
Unknown W. Brackets
8f73ae07c0 softgpu: Fix preview region y1 in ge debugger. 2013-12-29 13:45:10 -08:00
Unknown W. Brackets
473fb866e6 softgpu: Implement vertex preview.
And move ConvertMatrix4x3To4x4() into a common place since there were
differing implementations, which was only confusing.
2013-12-29 13:45:10 -08:00
Unknown W. Brackets
eb0ea71f24 softgpu: Use region for debugger buffer previews.
It's fine if it resizes or etc., but this should generally be the
interesting area of vram to show, without any confusing noise on the
side/etc.
2013-12-29 13:02:04 -08:00
Unknown W. Brackets
9f86959826 Fix typesafety (ScreenCoords not DrawingCoords.) 2013-12-29 12:59:26 -08:00
Unknown W. Brackets
25bc394284 Ignore the material update flag w/o vertex color.
Instead of using materialambient for all of them.

Fixes #3918, and seems to match tests with 3dstudio.
2013-12-29 12:57:30 -08:00
raven02
b44542abb7 Fix #4913 2013-12-29 22:30:56 +08:00
Henrik Rydgård
64717d1b02 Shaders: Make sure to always use matching versions.
Really should unify this somehow.
2013-12-29 12:27:19 +01:00
Henrik Rydgård
c277fe3019 Don't declare fragColor0 unless we will use it. See #4877 2013-12-29 11:26:56 +01:00
Henrik Rydgård
acf4562130 Merge pull request #4913 from raven02/patch-25
Set alpha mask based on ReplaceAlphaWithStencil()
2013-12-29 02:19:34 -08:00
Henrik Rydgård
0952674b37 Merge pull request #4898 from raven02/patch-21
GLES3: enable PSP-based mipmapping generation
2013-12-29 02:07:31 -08:00
raven02
d1327822d1 ReplaceAlphaWithStencil() has been checked for gstate.isStencilTestEnabled() 2013-12-26 11:33:53 +08:00
raven02
40efc5fb4d Regroup Stencil Testing 2013-12-26 11:18:16 +08:00
raven02
e5059d2c96 Set amask based on ReplaceAlphaWithStencil() 2013-12-25 19:42:08 +08:00
raven02
0a44bff7fa GLES3: Try to re-enable PSP-based mipmapping generation 2013-12-25 17:17:10 +08:00
raven02
9676f6943f Restore Alpha/ColorDoubling to do before color test 2013-12-25 15:39:37 +08:00
raven02
f97aacce45 Reformat stencilToAlpha a bit 2013-12-24 22:36:57 +08:00
raven02
cf50ace328 bind framebuffer to 0 if framebuffer status is incomplete 2013-12-22 16:03:39 +08:00
raven02
8a9ba716a0 GLES3: uses GL_MIN/MAX as supported 2013-12-22 15:20:04 +08:00
Henrik Rydgard
fe472b4255 Update native, setting ATIClampBug on Tegra as it has the same behaviour.
Fixes black screen in GTA on Tegra.
2013-12-21 13:47:49 +01:00
Henrik Rydgard
9e109e16d9 Android buildfix.
Also, this warning flag appears not supported. (4.6?)
2013-12-21 13:06:29 +01:00
raven02
4f81d97624 emnu fix#2 2013-12-21 16:18:38 +08:00
raven02
ad720b31e0 emnu fix#1 2013-12-21 16:17:40 +08:00
Henrik Rydgård
b2d0f37d96 Fix crashing on some OpenGL versions 2013-12-18 12:00:23 +01:00
Henrik Rydgard
0a1514161d GLSL 3.0 fix 2013-12-18 11:22:31 +01:00
Henrik Rydgard
832c933cb8 Some shader fixes 2013-12-17 23:38:58 +01:00
Henrik Rydgård
6432451334 Merge pull request #4864 from unknownbrackets/io-minor
Implement some ioctl commands for disc0:/ files
2013-12-17 00:38:04 -08:00
Henrik Rydgard
3ed7c6d48f SoftGPU: Display at correct aspect ratio independent of window size. 2013-12-17 09:02:54 +01:00
Unknown W. Brackets
183b4cb45c Add a static method for creating PSPPointers.
This is still kinda ugly, but the assignment thing was just too ugly, I
couldn't do it anymore.
2013-12-16 23:50:52 -08:00
Henrik Rydgard
38f94ea0bf Minor typo fix 2013-12-17 00:20:40 +01:00
Henrik Rydgard
f8312716f3 Only use dual source when actually needed.
Does generate a few more shaders but hopefully isn't a problem, should get rid of most of the slowdown in most games.
2013-12-16 23:44:28 +01:00
Henrik Rydgard
a9a15d5196 Don't use dual source when stencil disabled 2013-12-16 23:41:42 +01:00
Henrik Rydgard
068d4f0ee5 Another typo fix 2013-12-16 23:40:30 +01:00
Henrik Rydgard
0d2ec01e83 Switch CanReplaceAlphaWithStencil response to an enum 2013-12-16 23:24:32 +01:00
Henrik Rydgard
a8a48013f6 Don't use gl_FragColor when deprecated 2013-12-16 23:18:13 +01:00
Henrik Rydgard
40a0705b50 Typo fix checking the alpha func for src factors 2013-12-16 23:13:33 +01:00
Henrik Rydgård
34f2f5db98 When drawing the displayed FBO to the screen, always use bilinear.
Might want to make this an option in the future.
2013-12-16 16:04:08 +01:00
raven02
71d2ce3731 Replace -ve fogcoef[1] with -10000.0f 2013-12-16 22:45:21 +08:00
Henrik Rydgård
2871633e36 Merge pull request #4750 from unknownbrackets/ui-tweaks
Support pinning paths in the game browser
2013-12-16 06:08:05 -08:00
raven02
8306243b97 Check gstate.isSkinningEnabled() only 2013-12-16 20:44:13 +08:00
raven02
04f31c5e8e Add gstate.isSkinningEnabled() 2013-12-16 20:42:45 +08:00
Henrik Rydgård
b6f8038a51 Fragment shader: Remove superfluous precision specifiers.
Also make sure to strip lowp/mediump/highp on desktop even for GL3.0-3.3.
2013-12-16 11:46:59 +01:00
Unknown W. Brackets
3f674f7ef6 Always update framebuffer tex sampling params.
Otherwise they are not always correct and cause glitches.
2013-12-15 18:23:47 -08:00
Unknown W. Brackets
b1d78020c4 softgpu: Keep track of frame dirty for frameskip.
But only when frameskip is enabled.  Let's always draw in case of pixel
poking when it's off.
2013-12-15 14:32:04 -08:00
Henrik Rydgård
f8282d1dd3 Merge pull request #4847 from unknownbrackets/gpu-minor
Use #version 130 for OpenGL 3.0+ to support out
2013-12-15 14:17:28 -08:00
Unknown W. Brackets
9aa1b15569 softgpu: Fix black objects with bilinear filtering.
Dividing by 256 gives us a range of 0-253, and incorrectly gets zero for
some components (guessing alpha, primarily?) in some games.

Dividing by 255 has a speed hit, so a slight bias to the top left seems
like a decent performance compromise (and it's a very slight bias.)
2013-12-15 11:59:25 -08:00
Unknown W. Brackets
96d6f52a13 softgpu: Retain accuracy in depth for tests.
Fixes intro/menu issues in Phantasy Star Portable 1/2, and text in the
first, both of which now look correct.
2013-12-15 11:59:25 -08:00
Unknown W. Brackets
6ca5662b03 softgpu: Properly swizzle 16 bit textures.
Fixes for example the graphics in Fieldrunners.
2013-12-15 11:59:24 -08:00
Unknown W. Brackets
a2d91ee26d softgpu: Don't mask out so much of fb stride.
Seems like anything from 4 is supported in 8888, most likely it just needs
to align to 16 bytes.  Values above 1024 work, but e.g. 2044 seems buggy.

Fixes the map on Hexyz Force (rendered at 80 stride.)
2013-12-15 11:59:24 -08:00
Unknown W. Brackets
da1224bb57 softgpu: Use the display, not current, framebuffer.
Fixes blinking in save dialogs and probably other bugs.
2013-12-15 11:59:23 -08:00
Unknown W. Brackets
2f0c8c2877 softgpu: Attempt to implement GE_PROJMAP_UV.
Looks okay, not sure if it's fully correct.
2013-12-15 11:59:22 -08:00
Unknown W. Brackets
0043950770 Use #version 130 for OpenGL 3.0+ to support out.
Otherwise it just gives errors on cards that support dual source blending.
2013-12-15 08:32:22 -08:00
raven02
7f828a6b66 Set float for gstate.getStencilTestRef() * (1.0f / 255.0f); 2013-12-15 21:40:14 +08:00
Henrik Rydgard
214cc01976 Fix bugs in stencil2alpha, fix bugs in glsl 3 support, enable dual source blending where available
The stencil2alpha bug fixes fix some glows in Wipeout, dual source fixes the rest.
2013-12-15 12:49:13 +01:00
Henrik Rydgard
3cde4921ae Have the shader generators generate modern GLSL if available.
This opens up to use other modern features like dual source alpha later.
2013-12-15 11:23:27 +01:00
Unknown W. Brackets
4bc86afd5e Adjust some project filters. 2013-12-14 22:36:41 -08:00
Unknown W. Brackets
11ed3a46d9 Workaround Tactics Ogre block transfer weirdness.
This works around #4833, while keeping videos in Valkyrie Profile (and any
other games programmed the same way) working.
2013-12-14 16:45:29 -08:00
Unknown W. Brackets
13bf4d83fa Add memchecks for common HLE copy operations.
Better to catch some than miss everything.
2013-12-14 14:56:05 -08:00
Unknown W. Brackets
057cad228c Upload block transfers to FBOs when from ram. 2013-12-14 10:10:23 -08:00
raven02
078606a528 enum for GE_TEXFUNC_UNKNOWN1/2/3 = 5/6/7 2013-12-14 06:48:45 +08:00
raven02
affc7f44a6 Add extra GE_TEXFUNC_UNKNOWN1/2/3 which handle same as GE_TEXFUNC_ADD 2013-12-14 06:47:20 +08:00
raven02
5c6dbb8a31 Restore viewport when switching render targets 2013-12-14 04:14:59 +08:00
Henrik Rydgård
1cf3b16b4f Merge pull request #4796 from raven02/patch-3
Render correct fog in 3rd birthday and menu transparency in Kurohyou 2
2013-12-12 00:29:02 -08:00
Henrik Rydgård
6fed4e2683 Revert "Exact : should be applied to all rendering mode"
This reverts commit f170d5ef7b.
2013-12-11 16:59:20 +01:00