Commit Graph

2903 Commits

Author SHA1 Message Date
Unknown W. Brackets
b0cad8ecac d3d: StretchRect properly at > 1x. 2014-09-14 00:26:35 -07:00
Unknown W. Brackets
26978ad7e0 d3d: Allow blit to self in block transfers/etc. 2014-09-13 22:39:54 -07:00
Unknown W. Brackets
8c4c9e554e d3d: Cache offscreen surfaces. 2014-09-13 22:28:39 -07:00
Unknown W. Brackets
ff3c5075fa d3d: Apply a half pixel offset when rendering.
Makes things a lot sharper, although there still seem to be problems.
This makes it so the viewport aligns with pixel edges rather than centers
at whole integers.
2014-09-13 22:08:43 -07:00
Unknown W. Brackets
0d1a529b01 d3d: Fix 4444 framebuffer data upload. 2014-09-13 21:50:38 -07:00
Unknown W. Brackets
95bf3a71dd d3d: Properly cache the DrawPixels tex size. 2014-09-13 21:45:18 -07:00
Unknown W. Brackets
abb2ce325c d3d: If possible, use StretchRect() to display.
May be faster, has less half-pixel offset issues.  Still seeing blurriness
problems, but they're better.
2014-09-13 20:31:01 -07:00
Unknown W. Brackets
822c5d9e75 d3d: Use StretchRect() when possible. 2014-09-13 20:08:29 -07:00
Unknown W. Brackets
003aaed9a7 d3d: Dirty the shader when drawing textures. 2014-09-13 20:05:41 -07:00
Unknown W. Brackets
98549aeb51 d3d: Fix download of small sections, oops. 2014-09-13 19:57:49 -07:00
Unknown W. Brackets
e4d5eb5d6c d3d: Dynamically size the drawPixelsTex_ like gl. 2014-09-13 19:56:08 -07:00
Unknown W. Brackets
6490a4ef44 d3d: Report errors on download/blit/upload. 2014-09-13 19:21:59 -07:00
Unknown W. Brackets
ec4e96b870 d3d: Expliticly bind after fbo_create().
In GLES, this is a tiny call that checks a cache, but it's necessary in
Direct3D 9.
2014-09-13 18:46:59 -07:00
Unknown W. Brackets
2d530a916f d3d: Always download 8888, at least for now. 2014-09-13 18:25:45 -07:00
Unknown W. Brackets
d332452077 d3d: Track memory copies/uploads/downloads. 2014-09-13 17:59:21 -07:00
Unknown W. Brackets
9d24de3269 d3d: Oops, switch over block transfer logic. 2014-09-13 17:28:35 -07:00
Unknown W. Brackets
ddc9aaa4e8 d3d: Download from the specified region only. 2014-09-13 17:28:05 -07:00
Unknown W. Brackets
c17931c179 d3d: Fix flipped y in framebuf blit. 2014-09-13 17:10:57 -07:00
Unknown W. Brackets
b9d7ffe484 d3d: Support the Danganronpa hack. 2014-09-13 16:47:23 -07:00
Unknown W. Brackets
1f44bf2396 d3d: Don't flip blits when downloading. 2014-09-13 16:39:31 -07:00
Unknown W. Brackets
7f89723d2b d3d: Initial implementation of framebuf download.
Not working, or not working properly...
2014-09-13 16:37:59 -07:00
Unknown W. Brackets
2463074530 d3d: Converge block transfer logic. 2014-09-13 15:40:55 -07:00
Unknown W. Brackets
971dd5df1e d3d: Unify BlitFramebuffer() as well. 2014-09-13 15:12:59 -07:00
Unknown W. Brackets
a4d33d77b7 d3d: Unify ReadFramebufferToMemory() signature. 2014-09-13 15:09:30 -07:00
Unknown W. Brackets
f33515723b Move ForgetLastTexture() into DrawPixels(). 2014-09-13 14:58:05 -07:00
Unknown W. Brackets
96b497f955 d3d: Support arbitrary size framebuf uploads. 2014-09-13 14:54:53 -07:00
Unknown W. Brackets
b79062339b d3d: Fix colors in UpdateFromMemory(). 2014-09-13 14:53:43 -07:00
Unknown W. Brackets
3dfdddfc5f d3d: Move UpdateFromMemory() to common. 2014-09-13 14:44:18 -07:00
Unknown W. Brackets
9af3befc59 d3d: Add RebindFramebuffer(). 2014-09-13 14:26:39 -07:00
Unknown W. Brackets
6f991a1042 d3d: Add FlushBeforeCopy(). 2014-09-13 14:23:18 -07:00
Unknown W. Brackets
dc5afe9b38 d3d: Converge DrawPixels() logic.
This makes render to offset actually work properly.
2014-09-13 13:09:26 -07:00
Unknown W. Brackets
4909122660 d3d: Flip viewport y within the top of the fb.
Fixes issues when the framebuffer is larger than the current render
target.
2014-09-13 12:37:19 -07:00
Unknown W. Brackets
de6a168c97 d3d: Flip v correctly when buffer swapping. 2014-09-13 12:21:39 -07:00
Unknown W. Brackets
f3dbe526a9 d3d: Support offset rendering. 2014-09-13 12:08:14 -07:00
Unknown W. Brackets
5a0f646916 Merge pull request #6900 from hrydgard/gpu-convergence-2
Gpu convergence 2 - break out much of the Spline code into GPU/Common, fixes some minor things
2014-09-13 12:06:35 -07:00
Henrik Rydgard
0818d8ea8d dx9: More execute functions 2014-09-13 20:55:29 +02:00
Unknown W. Brackets
36a49917d2 d3d: Set texture only when enabled.
This allows optimizations that were applied to the cmd flags.
2014-09-13 11:55:01 -07:00
Unknown W. Brackets
e6f1ca6582 d3d: Correct framebuffer sizing issues. 2014-09-13 10:34:45 -07:00
Henrik Rydgard
21545e31c6 More convergence (tex stuff) 2014-09-13 17:20:55 +02:00
Henrik Rydgard
a4ae0f951a Move spline generation to SplineCommon, make SplineDX9.cpp identical to Spline.cpp (merge later somehow) 2014-09-13 15:13:34 +02:00
Henrik Rydgard
2f569533f3 Fix burnout depth issue by dirtying the proj matrix on viewport change 2014-09-13 14:08:07 +02:00
Henrik Rydgard
63e3e95d58 Replace the DX9 software transform code with the new common one 2014-09-13 13:53:04 +02:00
Henrik Rydgard
19a9c4481f Move GLES' SoftwareTransform to Common 2014-09-13 13:27:42 +02:00
Henrik Rydgard
4212bbb51e Cleanup SoftwareTransform a bit more 2014-09-13 13:15:18 +02:00
Henrik Rydgard
ca3ed34b44 Move most GL code out of GLES/SoftwareTransform.cpp 2014-09-13 13:03:37 +02:00
Henrik Rydgard
b4690b23d6 Make D3D TransformDrawEngine more similar to GL 2014-09-13 12:27:20 +02:00
Henrik Rydgard
9b587bb144 Make the D3D backend cmd processing work more similar to the GL backend 2014-09-13 12:11:34 +02:00
Henrik Rydgård
405f67fbef Merge pull request #6870 from hrydgard/vtxdec-centralize
Centralize the vertex decoder
2014-09-13 01:03:22 +02:00
Henrik Rydgard
c25815b904 DX9: Must turn off vertex caching for software skinned draws 2014-09-13 01:02:47 +02:00
Unknown W. Brackets
c288a52975 d3d: Oops, fix dumb CheckAlpha() mistake. 2014-09-12 08:12:16 -07:00