Commit graph

166 commits

Author SHA1 Message Date
Unknown W. Brackets
8275f613ce UpdateMemory() now returns whether to skip the cpy.
This way it can do it itself as necessary in the right order.
2014-05-25 21:48:41 -07:00
Unknown W. Brackets
4cc4cfed4c Note that VADDR/IADDR are not updated on PRIM.
Even though they do increase the addresses, they don't affect the CMD
registers.

Also, make sure not to use a crazy bytesRead for a zero-sized prim.
2014-05-04 18:24:49 -07:00
Unknown W. Brackets
a843cbd580 Shrink the very common sceKernelThread.h include. 2014-03-15 11:44:02 -07:00
Unknown W. Brackets
d2108a962e Switch from USING_GLES2 to MOBILE_DEVICE.
Still using USING_GLES2 for, well, GLES2.  But for things that are really
about mobile, we need a new define.  Devices are coming that don't use
GLES2.
2014-02-08 16:37:58 -08:00
Unknown W. Brackets
4ea4554ddf softgpu: detect a vram-relative display addr. 2014-01-11 09:51:32 -08:00
Henrik Rydgård
87f203a5b8 More include untangling 2013-12-29 23:44:35 +01: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
Henrik Rydgard
3ed7c6d48f SoftGPU: Display at correct aspect ratio independent of window size. 2013-12-17 09:02:54 +01: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
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
13bf4d83fa Add memchecks for common HLE copy operations.
Better to catch some than miss everything.
2013-12-14 14:56:05 -08:00
Henrik Rydgård
68b08ffb9f SoftGPU: Quick and dirty lines and points implementation
No line/point texturing support yet.
2013-12-09 12:43:49 +01:00
Unknown W. Brackets
d227b13f36 softgpu: Advance vertex/index address on prim.
Fixes some broken graphics in a lot of places.
2013-11-20 21:59:45 -08:00
Unknown W. Brackets
b62e36e997 Support frameskip in softgpu. 2013-10-27 16:50:03 -07:00
Unknown W. Brackets
98e257c95d Add GPU cycle estimation to the softgpu. 2013-10-27 15:05:57 -07:00
Henrik Rydgard
f5a63d7d41 Better fix for the UINT_64 define issue on android 2013-10-20 13:52:31 +02:00
Unknown W. Brackets
b9811c7c97 Use the slow way to get the softgpu texture.
So that it actually shows what the softgpu is using.
2013-10-07 01:26:48 -07:00
Unknown W. Brackets
5c2d418d95 Read softgpu stencil using existing funcs.
Slower but at least it's the same.
2013-10-07 01:02:58 -07:00
Unknown W. Brackets
31171cc044 Grab the stencil buffer in softgpu debugging. 2013-10-07 00:50:15 -07:00
Unknown W. Brackets
d49ad5f114 Use an accessor for depth/frame addresses. 2013-10-06 22:17:53 -07:00
Unknown W. Brackets
32f2f045e4 Don't report a loadclut of 0. 2013-10-05 15:41:44 -07:00
Unknown W. Brackets
2eb10c3b3f Add basic GetCurrentTexture() to softgpu. 2013-10-05 11:37:14 -07:00
Unknown W. Brackets
da1d700904 Attempt to support rendering depth/stencil.
But no interface yet.  I can't tell if it works, I just get black...
2013-09-28 02:38:05 -07:00
Henrik Rydgard
424b4cbd5f Move GE_CMD_BJUMP to GPUCommon. Add the flag. (no actual bbox impl yet) 2013-09-24 14:14:04 +02:00
Unknown W. Brackets
6af44910c1 Add an interface to return the current framebuffer. 2013-09-22 19:03:31 -07:00
Unknown W. Brackets
242879b0ea Remove a bunch of debug logs, sync with gles.
This may fix bad vertex/index addresses, or crashes from the matrix
arrays.  The debug logging is better replaced with "dump this frame".
2013-09-14 14:28:37 -07:00
Unknown W. Brackets
8ddbc0a9ab Don't allow boneMatrixNumber to go outside bounds.
Just from the GLES code.

Fixes the Monster Hunter 3rd demo crash, but not sure why it's trying to
use crazy numbers in the first place...
2013-09-14 14:10:50 -07:00
Unknown W. Brackets
dc81547d32 Use less pointer math in softgpu buffer access. 2013-09-14 11:36:56 -07:00
Henrik Rydgard
c88920be4b Bail more gracefully if no real OpenGL driver is installed on XP 2013-09-11 21:35:44 +02:00
Henrik Rydgard
5e6c837ced Fix issue where the SoftGPU would render double size if "antialiasing" was on. 2013-09-10 22:27:05 +02:00
Unknown W. Brackets
2e8b475789 Don't ignore the low bits of the framebuf pointer. 2013-09-07 02:01:01 -07:00
Unknown W. Brackets
8d16b76c15 Add some reporting to the software GPU. 2013-09-01 01:15:07 -07:00
Unknown W. Brackets
5ab04a3076 Centralize CLUT handling form gstate values. 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
c141e94fe9 Use gstate.* accessors in a few more places. 2013-08-24 11:34:35 -07:00
Unknown W. Brackets
92dbfd177a Render the display width properly in softgpu. 2013-08-17 10:57:08 -07:00
Unknown W. Brackets
90affa2203 Remove very questionable DrawSync override. 2013-08-17 09:53:10 -07:00
Unknown W. Brackets
a4bea9c878 Add support for multithreading in softgpu. 2013-08-17 09:52:35 -07:00
Tony Wasserka
67f95d38e5 softgpu: Some cleanups in SoftGpu.cpp 2013-08-16 23:49:15 +02:00
Tony Wasserka
838d22d120 softgpu: Implement memory transfers. 2013-08-16 23:49:14 +02:00
Tony Wasserka
11a94e1d14 softgpu: Implement spline surface drawing (without patch subdivision). 2013-08-16 23:49:13 +02:00
Tony Wasserka
ad8449c382 softgpu: Add some safety checks. 2013-08-16 23:49:13 +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
44035df446 SoftGpu: Add support for triangle fans. 2013-08-16 23:49:10 +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
602e0e5358 softgpu: Add working CLUT support. 2013-08-16 23:49:04 +02:00
Tony Wasserka
bd49480244 softgpu: Add initial support for triangle strips. No idea if they work. 2013-08-16 23:49:01 +02:00
Tony Wasserka
b33646cced softgpu: Disable texturing in clear mode. 2013-08-16 23:49:01 +02:00