Commit graph

335 commits

Author SHA1 Message Date
Unknown W. Brackets
ad4bd8ed74 softgpu: small optimization, precompute tex info. 2013-09-15 21:39:28 -07:00
Unknown W. Brackets
f43997a47f Update bufw handling in all gpus.
This fixes the softgpu as well, at least.
2013-09-15 21:27:13 -07:00
Unknown W. Brackets
dc81547d32 Use less pointer math in softgpu buffer access. 2013-09-14 11:36:56 -07:00
Unknown W. Brackets
40e3e8e930 Use a gstate enum, report unhandled blend mode. 2013-09-14 07:36:43 -07:00
Unknown W. Brackets
1a7e0e40cf Refactor the logic op into a func like the others. 2013-09-14 07:21:58 -07:00
Unknown W. Brackets
c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00
Henrik Rydgard
78d3ee3d6a Misc cleanup, mostly logging code 2013-09-07 13:01:19 +02:00
raven02
59599a62d3 Build fix 2013-09-05 16:00:11 +08:00
Unknown W. Brackets
2006bdc6a3 Fix negative texel wrapping in softgpu.
No longer crashes in Jeanne d'Arc, still looks awful.
Also faster on x64 at least.
2013-09-02 21:29:19 -07:00
Unknown W. Brackets
8d16b76c15 Add some reporting to the software GPU. 2013-09-01 01:15:07 -07:00
Unknown W. Brackets
7349de55d1 Fix some initialization/sprintf warnings. 2013-09-01 01:15:07 -07:00
raven02
eca79d35a7 softgpu : use switch case for texture format 2013-08-27 16:26:01 +08:00
raven02
bfd60e95a4 softgpu: Use switch case for different texture mapping mode 2013-08-27 16:15:53 +08:00
Henrik Rydgård
99c1ab38d7 Merge pull request #3224 from raven02/patch-5
softgpu : Fix depth issue in FF Type-0
2013-08-24 16:10:33 -07:00
Unknown W. Brackets
6e8d318322 Bugger typo. 2013-08-24 11:36:01 -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
55e02369a5 Workaround an ICE in some versions of gcc. 2013-08-24 11:33:49 -07:00
Unknown W. Brackets
12c5f5e1e6 Use constants for other uv gen mode usages.
And also change them to treat 3 as coords as well.
2013-08-19 00:43:54 -07:00
raven02
87434e8dad softgpu : Fix depth issue in FF Type-0 2013-08-18 22:58:23 +08:00
Henrik Rydgard
9f3848b49c swrast warning fixes 2013-08-17 12:37:47 +02:00
Tony Wasserka
74eafcab1a softgpu: Process rasterization in screen space, rather than drawing space. 2013-08-16 23:49:15 +02:00
Tony Wasserka
d0c05b78d6 softgpu: Fix some stencil testing related bugs. 2013-08-16 23:49:15 +02:00
Tony Wasserka
6b90aa250d softgpu: Polish some helper function signatures. 2013-08-16 23:49:13 +02:00
Tony Wasserka
f6feb874ed softgpu/Rasterizer: Structure some code more clearly. 2013-08-16 23:49:12 +02:00
Tony Wasserka
1450157e09 softgpu: Implement environment mapping. 2013-08-16 23:49:12 +02:00
Tony Wasserka
d2f30961af softgpu: Make perspective correct uv mapping code more readable and implement projection mapping. 2013-08-16 23:49:12 +02:00
Tony Wasserka
104feea8eb softgpu: Restructure texture sampling code a bit. 2013-08-16 23:49:12 +02:00
Tony Wasserka
bacadefde4 softgpu: Optimization, part 3. 2013-08-16 23:49:12 +02:00
Tony Wasserka
b22a82d350 softgpu: Optimization, part 2. 2013-08-16 23:49:11 +02:00
Tony Wasserka
0c6a9dcf50 softgpu: Optimization, part 1. 2013-08-16 23:49:11 +02:00
Tony Wasserka
002ab3e3ad softgpu: Hackfix CLUT4 texture deswizzling. 2013-08-16 23:49:11 +02:00
Tony Wasserka
62b384e052 softgpu: Lots of clearmode fixes. 2013-08-16 23:49:11 +02:00
Tony Wasserka
f35e085859 softgpu: Change framebuffer writes to act on actual 16 bit pixels if that's the framebuffer format. 2013-08-16 23:49:11 +02:00
Tony Wasserka
2ea7162962 softgpu: Implement depth range test. 2013-08-16 23:49:10 +02:00
Tony Wasserka
e1216e91cc softgpu: Implement texture scaling, texture offset and texture coordinate wrapping/clamping. 2013-08-16 23:49:10 +02:00
Tony Wasserka
c8f1819179 softgpu: Fix triangle borders not fitting together properly. 2013-08-16 23:49:09 +02:00
Tony Wasserka
4e1d2f0cb2 softgpu: Implement logic ops. 2013-08-16 23:49:09 +02:00
Tony Wasserka
c957574f90 softgpu: Implement color masking. 2013-08-16 23:49:09 +02:00
Tony Wasserka
a013aad6f1 softgpu: Fix incorrect depth buffer write base address.
softgpu: Implement framebuffer pixel formats different than RGBA8888.
softgpu: Move texel decoding functions to a separate header.
2013-08-16 23:49:09 +02:00
Tony Wasserka
b2d4df2ddf Fixes for CLUT decoding 2013-08-16 23:49:08 +02:00
Tony Wasserka
ccb487cbae softgpu: Clip primitives when one of their vertices is outside the screen coordinate range (the code really needs a cleanup though).
softgpu: Fix triangle strip rendering.
softgpu: Implement CCW cullmode.
2013-08-16 23:49:08 +02:00
Tony Wasserka
37ef488f83 softgpu: Support RGB565, RGBA5551 and RGBA4444 CLUT formats. 2013-08-16 23:49:08 +02:00
Tony Wasserka
54c9303f4a softgpu: static inline everything. 2013-08-16 23:49:08 +02:00
Tony Wasserka
dedb3de5c3 softgpu: Add support for 32 bit and 16 bit index texture formats.
softgpu: Move texture function emulation to a helper function.
2013-08-16 23:49:08 +02:00
Tony Wasserka
2336f4cd8c softgpu: Assign texture alpha value to 255 when no alpha channel is present. 2013-08-16 23:49:07 +02:00
Tony Wasserka
88348a3d73 softgpu: Fix rgba texture function.
softgpu: Reorder pixel pipeline steps to match hardware order (without caring about performance loss, should be optimized later!).
softgpu: Implement alpha and color testing.
softgpu: Change CLUT lookup code a bit, still need to make some sense out of this.
2013-08-16 23:49:07 +02:00
Tony Wasserka
c549ee0d12 softgpu: Fix some alpha blending bugs. 2013-08-16 23:49:07 +02:00
Tony Wasserka
e7ac41c4bc softgpu: Possibly fix a bug. Or make things worse. I don't know :/ 2013-08-16 23:49:07 +02:00