raven02
0b98f1f71b
Should keep default case
2013-08-28 15:10:40 +08:00
raven02
0f55a6e042
Add GE_COMP_NEVER for alpha/color test to return false.
2013-08-28 14:33:15 +08:00
Henrik Rydgard
dcc63fd716
PowerVR: work around what appears to be a driver bug with equality test + discard, but not completely sure that discard isn't just broken.
...
If this change breaks something, it was probably already broken, and it's PVR-only.
2013-08-28 00:12:49 +02:00
Henrik Rydgard
dd667156f5
Oops
2013-08-27 22:14:13 +02:00
Henrik Rydgard
711d3ff52c
Speedup a few 2D games on mobile by eliminating the alpha test in some conditions
...
That is, if there's no depth testing/writing, and the alpha equation will produce the same result as the alpha test (when the alpha test is >= 0 or != 0 and the blend func is safe), we turn off the alpha test.
2013-08-27 21:48:03 +02:00
Henrik Rydgard
6360fcb0ae
Add some stats to get some idea of much alpha tested drawing we do.
...
Turns out it's one hell of a lot and we really should fix this by
checking both vertices and textures to deduce when we can just skip
alpha testing safely, probably quite often.
I care about this because alpha testing drawing is very expensive
on some mobile chips.
2013-08-27 21:01:17 +02:00
raven02
762beae5e5
Minor fix to bool useNonBufferedRendering
2013-08-27 22:31:50 +08:00
raven02
d66f049d22
GLES SW: inline with HW using 0,0,1 ;
2013-08-27 16:52:17 +08:00
raven02
7612335992
Minor fix 'useBufferedRendering' bool variable
2013-08-27 15:11:55 +08:00
Henrik Rydgard
55aa3d13c7
Win32: Switch to a UNICODE build. This took quite a bit of fixing.
2013-08-26 19:00:16 +02:00
Henrik Rydgård
9667b9e316
Merge pull request #3387 from raven02/patch-19
...
Use stenciltest for glblendFuncSeparate()
2013-08-26 05:55:01 -07:00
raven02
2442c24aee
Use stenciltest for glblendFuncSeparate()
...
1
2013-08-26 17:49:59 +08:00
Henrik Rydgård
21c5121129
Merge pull request #3389 from raven02/patch-20
...
GLES: Skip GE_LOGIC_COPY for logic ops
2013-08-26 00:50:06 -07:00
raven02
f49a2f7fa0
GLES: Skip GE_LOGIC_COPY for logic ops
2013-08-26 15:48:57 +08:00
Florent Castelli
c6932e2675
Use GEPrimitiveType everywhere instead of stupid integer
2013-08-25 19:51:06 +02:00
Henrik Rydgard
554ca84556
Revert "More alpha hackery. This is starting to get embarrassing, really need to fix those tests."
...
This reverts commit 97a6921000 .
2013-08-25 13:24:52 +02:00
Henrik Rydgard
97a6921000
More alpha hackery. This is starting to get embarrassing, really need to fix those tests.
2013-08-25 13:12:31 +02:00
Henrik Rydgård
2d89323fc2
Merge pull request #3357 from raven02/patch-15
...
Regession fix character shadow stretch in FF Crisis core
2013-08-25 03:01:58 -07:00
raven02
0ea10d96b1
Attempt to use scissor to render correct shadowing in Mortal Kombat/FF CC
2013-08-25 14:52:18 +08:00
raven02
284a3a7b44
Mipmapping only enable when texture scaling disabled
2013-08-25 14:43:03 +08:00
Unknown W. Brackets
8dbcf6572e
Add some additional reporting.
2013-08-24 11:34:38 -07:00
Unknown W. Brackets
cd70250d8c
Use more accessors, simplify softgpu colortest.
2013-08-24 11:34:38 -07:00
Unknown W. Brackets
5ab04a3076
Centralize CLUT handling form gstate values.
2013-08-24 11:34:37 -07:00
Unknown W. Brackets
7f6cf3ec29
Add a few gstate accessors for texture type stuff.
2013-08-24 11:34:37 -07:00
Unknown W. Brackets
0a217a1254
Use accessors better for block transfers.
2013-08-24 11:34:36 -07:00
Unknown W. Brackets
6227fe0754
Add some reporting of spline issues.
2013-08-24 11:34:36 -07:00
Unknown W. Brackets
c141e94fe9
Use gstate.* accessors in a few more places.
2013-08-24 11:34:35 -07:00
Henrik Rydgard
955ad2a6e4
swap_control_tear doesn't seem to work out for our timing or something. Let's do regular vsync.
2013-08-24 11:56:41 +02:00
Henrik Rydgard
edb6e5a54c
Fix fallthough bugs in isAlphaTestTriviallyTrue
2013-08-24 11:56:39 +02:00
Henrik Rydgård
06a2d94fd2
Need to flush on FINISH/SIGNAL apparently..
2013-08-23 16:31:03 +02:00
raven02
7eefbf21f2
Fix Spline drawing for Metal Gear Solid Portable Ops
2013-08-23 21:35:02 +08:00
Henrik Rydgard
fc313b1ac9
Use the EXECUTE flag to avoid calling ExecuteOp when possible. Minor speedup.
2013-08-23 14:27:48 +02:00
Henrik Rydgard
a3fa3c9c2d
Combine and sort the GPU command tables by purpose, make it flags for future flexibility.
...
Fix a couple of bugs while at it (logic ops were not flushing, if viewport was partially changed, it might not take).
2013-08-23 13:36:55 +02:00
raven02
6113709f3d
Add glstate.colorLogicOp.disable();
2013-08-23 17:32:10 +08:00
Henrik Rydgård
89e476d9f2
Merge pull request #3333 from unknownbrackets/reporting
...
Add a bunch of HLE funcs + fix bad reloc masking and warnings
2013-08-23 01:41:00 -07:00
raven02
73e92cd2d4
age is int and should be age == 0
2013-08-23 15:32:16 +08:00
Unknown W. Brackets
1ed8edb0d3
Avoid some dangerous hex constant widths.
2013-08-22 23:23:48 -07:00
Henrik Rydgard
772f9cc585
Adapt the basic spline code from the softgpu to the GL code.
...
Fixes (but not perfectly) games that make simple use of splines like LocoRoco.
(The locos are a little jagged)
2013-08-23 00:33:18 +02:00
Henrik Rydgard
416f0c56e8
Experiment: Use glBlendFuncSeparate to not change dest alpha when blending.
...
Fixes Persona blending issues.
2013-08-22 19:14:04 +02:00
raven02
a3cd8743ba
Scisscor small fix
2013-08-22 22:21:03 +08:00
raven02
7245164604
Change to AttachFramebufferValid() for suboffset textures
2013-08-22 11:31:39 +08:00
Henrik Rydgard
3cd80e1c51
GLES: Discard "AA" lines, we can't do anything that makes sense with them anyway.
...
Should fix the "wireframe look" in one game, I can't test it though.
2013-08-21 20:45:22 +02:00
Unknown W. Brackets
a217cefa11
Tone down some less needed reporting.
2013-08-21 08:40:29 -07:00
Henrik Rydgård
07a41e3432
Merge pull request #3287 from unknownbrackets/fbo-minor
...
Compare the right fb address for suboffset textures
2013-08-21 00:38:29 -07:00
Unknown W. Brackets
5b5bee86dd
Compare the right fb address for suboffset textures.
...
If that case is changed to AttachFramebufferValid(), fixes Valkyrie Profile's graphics mostly.
Still seems to hang somewhat into the game...
2013-08-21 00:34:47 -07:00
Henrik Rydgard
d9cd0d1fe9
Been meaning to rename DisplayListInterpreter->GLES_GPU forever
2013-08-20 22:34:47 +02:00
raven02
9931e5c5cc
Fragment : Set doTextureAlpha = gstate.isTextureAlphaUsed();
2013-08-20 21:32:07 +08:00
Henrik Rydgård
d9897719b7
Merge pull request #3260 from raven02/patch-8
...
Treat light type 3 as GE_LIGHTTYPE_SPOT
2013-08-20 05:13:26 -07:00
raven02
4899f67fa1
Missing one case type == GE_LIGHTTYPE_UNKNOWN
2013-08-20 19:43:26 +08:00
Henrik Rydgård
6bf448bcee
Merge pull request #3261 from raven02/patch-9
...
Use GETexProjMapMode constants for GE_TEXMAP_TEXTURE_MATRIX
2013-08-20 00:33:32 -07:00