Commit graph

14679 commits

Author SHA1 Message Date
sum2012
eded13a21d Add more information for directx 9 error 2014-09-28 15:55:16 +08:00
Henrik Rydgård
80a28e5ac7 Merge pull request #6950 from unknownbrackets/gpu-minor
d3d9: Show an error when default shaders fail to compile
2014-09-27 18:38:42 +02:00
Henrik Rydgård
f875b14666 Merge pull request #6954 from unknownbrackets/font-minor
Fix some minor issues in sceFont causing failing tests
2014-09-27 18:35:41 +02:00
Henrik Rydgård
7d6ce52dfe Merge pull request #6955 from unknownbrackets/dialog-minor
Fix the utility/msgdialog/abort test
2014-09-27 18:35:25 +02:00
Unknown W. Brackets
42fe8ee32e Convert FormatMessage() to utf-8 to fix locale.
Otherwise we get non-utf-8 garbage if the user isn't in a Latin codepage.
2014-09-27 09:04:24 -07:00
Unknown W. Brackets
2c99baf295 Delay sceUtilityMsgDialogUpdate() per tests.
This is an approximate value, but it should be close.
2014-09-27 00:13:27 -07:00
Unknown W. Brackets
00491bb33b Process msgdialog abort on Update().
Matches tests.
2014-09-27 00:13:11 -07:00
Unknown W. Brackets
ad191cdd3a Correct error codes in sceFontOpenUserMemory(). 2014-09-26 23:44:36 -07:00
Unknown W. Brackets
1d4bd6c695 Add a delay for creating fontlibs and fonts.
Matches tests, low bound on the delay.
2014-09-26 23:44:04 -07:00
Unknown W. Brackets
32fc4c7676 d3d9: Try harder to get a shader compile error. 2014-09-26 21:32:22 -07:00
Unknown W. Brackets
0039eab878 Offer to toggle graphics backends on any failure.
So, even if Direct3D 9 fails.
2014-09-26 21:20:51 -07:00
Unknown W. Brackets
358462a7f4 Add a .gitattributes to normalize newlines.
No code changes.
2014-09-26 21:20:50 -07:00
Unknown W. Brackets
b97af10a6d d3d9: Show error when default shaders fail. 2014-09-26 21:20:50 -07:00
Unknown W. Brackets
265094f614 Merge pull request #6951 from chinhodado/patch-5
Use E_FAIL instead of -1 and clean up
2014-09-26 21:19:37 -07:00
chinhodado
7b4b0eb0a0 Use E_FAIL instead of -1 and clean up 2014-09-26 15:55:21 -04:00
Henrik Rydgård
7442e5746b Merge pull request #6946 from unknownbrackets/gpu-minor
Simplify the viewport calculation
2014-09-25 15:44:30 +02:00
Unknown W. Brackets
67a54504c7 Oops, left the comment in the wrong one. 2014-09-24 23:11:47 -07:00
Unknown W. Brackets
cee2827172 Normalize newlines, no code changes.
We really shouldn't let mixed newlines creep into the codebase.
They're annoying.
2014-09-24 23:10:13 -07:00
Unknown W. Brackets
d1e992736b Simplify the viewport code a bit. 2014-09-24 23:09:09 -07:00
Henrik Rydgård
abb294ff7d Merge pull request #6940 from unknownbrackets/blend-logicop
d3d9: Emulate some logic ops with blending
2014-09-24 09:30:58 +02:00
Henrik Rydgård
6d5236baa6 Merge pull request #6942 from unknownbrackets/gpu-minor
gles: Avoid pow(<= 0, 0) entirely, undefined
2014-09-24 09:29:24 +02:00
Unknown W. Brackets
81592e9cf5 gles: Avoid pow(<= 0, 0) entirely, undefined.
Should work on more driver versions.  Fixes #6941.
2014-09-23 23:59:32 -07:00
Unknown W. Brackets
c88b66b308 d3d9: Emulate some logic ops with blending.
This makes Brave Story's intro visible.  Also add for GLES2/GLES3, but
doesn't seem to work on GLES2.
2014-09-23 21:13:47 -07:00
Henrik Rydgård
2aed007250 Merge pull request #6935 from unknownbrackets/atrac-minor
Try to match the initial atrac decode size
2014-09-24 00:13:10 +02:00
Unknown W. Brackets
0ebe5325d4 Correct the end from sceAtracGetSoundSample().
I think it's meant to be the last *valid* sample.
2014-09-23 11:33:21 -07:00
Unknown W. Brackets
e717a87f9f Add extra frames if we run out of atrac data.
We could probably insert frames instead for GHA phase shifting, but this
will solve other bugs too, I think.
2014-09-23 11:33:21 -07:00
Unknown W. Brackets
fa42426d21 Clamp the final sample count during decode.
Some games depend on / expect this, or else they'll let important data get
overwritten.
2014-09-23 11:33:20 -07:00
Unknown W. Brackets
68f4a1e7f7 Return the correct next sample at the beginning. 2014-09-23 11:33:20 -07:00
Unknown W. Brackets
0aa7247fea Fix seeking in atrac after the start.
Not sure the very start is right though, arg.
2014-09-23 11:33:19 -07:00
Unknown W. Brackets
4702ae0e41 Add breakpoints to most sceAtrac mem access. 2014-09-23 11:33:18 -07:00
Unknown W. Brackets
6b6bf3f8e6 Correct the dataOff member of atrac context. 2014-09-23 11:33:18 -07:00
Unknown W. Brackets
ac1fcdb269 Skip samples in the first chunk of atrac output.
This seems to be what the PSP actually does, although not sure.  The first
result is always smaller by this amount (numerous atrac files tested.)
2014-09-23 11:32:11 -07:00
Unknown W. Brackets
70705d4a9d Remove incorrect atrac decode ptr nullcheck.
Already shown in decode test to be valid.
2014-09-23 08:32:09 -07:00
Unknown W. Brackets
199e6bcd3b Avoid crashing when calling an invalid address.
We already have a check, let's use it properly.
2014-09-23 08:31:29 -07:00
Unknown W. Brackets
9bcffc5b4d Fix divide by zero in memcpy checks.
Happened in Resistance demo.
2014-09-21 21:36:26 -07:00
Henrik Rydgård
9aaaf3a835 Merge pull request #6922 from daniel229/a_few_func_replacement
A few functions replace in some games
2014-09-21 23:13:02 +02:00
Henrik Rydgård
b9d3443e1b Merge pull request #6931 from CPkmn/patch-6
D3D9 Get maxAnisotropyLevel from device caps
2014-09-21 22:31:31 +02:00
Henrik Rydgård
e20816a223 Merge pull request #6934 from unknownbrackets/d3d9
Update the Direct3D pixel shader to be more like GLES
2014-09-21 22:30:38 +02:00
Unknown W. Brackets
dc6c88d147 d3d9: Mask out alpha using KEEP stencil op. 2014-09-21 12:47:39 -07:00
Unknown W. Brackets
ae87024a0d d3d9: Enable 9ex, but not slower flip.
But maybe it's not slower?  Needs more testing.
2014-09-21 12:35:33 -07:00
Unknown W. Brackets
6618681d05 d3d9: Oops, can't use shader blending anyway. 2014-09-21 12:17:16 -07:00
Unknown W. Brackets
4e50eed85b d3d9: Specify tex stage for binding framebuf color. 2014-09-21 12:11:17 -07:00
Henrik Rydgard
718d7e291f d3d9: Add BindFramebufferColor(). 2014-09-21 12:05:29 -07:00
Unknown W. Brackets
856154a5f9 d3d9: Replace alpha and premultiply blend.
Unfortunately they are fairly tied together.
2014-09-21 12:01:49 -07:00
Unknown W. Brackets
6e34fe1c4b d3d9: Fix fbo tex clamp (usually shadows.) 2014-09-21 11:07:02 -07:00
Unknown W. Brackets
ccb6e99e07 d3d9: Disable color doubling without tex.
As the PSP does.
2014-09-21 10:58:21 -07:00
Unknown W. Brackets
8bf13d4214 d3d9: Add stencil and blend replacement helpers. 2014-09-21 10:56:54 -07:00
Unknown W. Brackets
e3d6f19a2e d3d9: Update some not-yet-used ps uniforms. 2014-09-21 10:41:44 -07:00
Unknown W. Brackets
9355322824 d3d9: Fix shader compile error X3014. 2014-09-21 09:05:47 -07:00
Unknown W. Brackets
4210ba44eb Clean up a few more ImmPtr() cases. 2014-09-21 08:34:27 -07:00