Commit graph

940 commits

Author SHA1 Message Date
strmnnrmn
20bc886504 [~] Move some more displaylist debugging code from BaseRenderer to RendererPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1130 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:08:08 +00:00
strmnnrmn
53a69a2c1f [*] Move BlendModes.{h,cpp}, CombinerExpression.{h,cpp} CombinerTree.{h,cpp} and CombinerInput.h to SysPSP. These aren't needed to compile the OSX build any more.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1129 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:08:00 +00:00
strmnnrmn
5f4df61c5a [~] Move LookupBlendState to the PSP Renderer implementation
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1128 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:43 +00:00
strmnnrmn
9230c125e6 [~] Move some PSP specific debugging code to RendererPSP
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1127 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:35 +00:00
strmnnrmn
0e288712fb [~] Fix a bunch of warnings and remove some unnecessary casting
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1126 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:07:25 +00:00
strmnnrmn
75693dd6aa [~] Fix BaseRenderer.h include guard to match filename
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1123 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:59 +00:00
strmnnrmn
ca5e2ce912 [~] Move the existing DisplayListDebugger.cpp to SysPSP - it's far too PSP specific to be useful on OSX.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1122 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:52 +00:00
strmnnrmn
daaab70972 [~] Shouldn't TexRect and TextRectFlip use the same logic to generate screen coords? TexRectFlip is use by Wetrix's intro screens
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1121 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:38 +00:00
strmnnrmn
fc88fe8410 [~] Rename some members with a m_dw prefix
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1120 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:31 +00:00
strmnnrmn
ebc7fb07c4 [~] Add a couple of notes to check UV offsets in the texrect code
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1119 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:23 +00:00
strmnnrmn
29155d7e01 [~] Move DrawTexture functions from BaseRenderer to the platform-specific impls
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1116 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:06:01 +00:00
strmnnrmn
05a3fe11d3 [~] Fix whitespace
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1115 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:52 +00:00
strmnnrmn
7a65e2e525 [+] Implement OSX RenderUsingCurrentBlendMode directly in GL
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1113 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:37 +00:00
strmnnrmn
a4b6d43dcd [~] Move all the virtual functions in BlendConstant.h to a separate .cpp file. As these are virtual functions, there's no benefit from declaring them inline, and all it does is bloat the header and slow the build time.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1112 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:28 +00:00
strmnnrmn
cc4fa6e600 [~] Make RenderUsingCurrentBlendMode pure virtual and define in the PSP/OSX implementations. Move RenderUsingRenderSettings too. The OSX build can pretty much rewrite all of this code, which I'll do next.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1111 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-03 12:05:18 +00:00
strmnnrmn
b7f981544c [~] Add separate OSX/PSP renderers, and instantiate these instead of BaseRenderer
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1110 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 16:14:09 +00:00
strmnnrmn
9a77dad8a8 [*] Rename PSPRenderer to BaseRenderer. (PSPRenderer will return, but just with PSP specific bits in it)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1108 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 15:46:32 +00:00
strmnnrmn
1e9e443f79 [*] Get rid of the PSPRenderer singleton, and implement as a simple gRenderer pointer. This gets rid of the PSPRenderer typename everywhere, which will make the next step easier (adding an OSXRenderer, and making that and PSPRenderer derive from BaseRenderer. Also in this commit, fixed a bunch of mixed tabs/spaces and formatting.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1107 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 15:46:18 +00:00
strmnnrmn
7422eb6f6c [*] Move PixelFormatPSP from SysPSP to common Graphics, rename to NativePixelFormat.h. Remove some of the namespaces to make use of native/n64 pixelformats more obvious when reading the code.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1106 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 14:34:51 +00:00
strmnnrmn
18e14dcb76 [+] OSX: implement a generic fragment shader that can handle all of the n64's mux/cycle modes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1104 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 10:10:34 +00:00
strmnnrmn
0e6ee06c9e [+] Rendering works on OSX now
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1101 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 10:10:11 +00:00
strmnnrmn
ffba6be50c [\!] calculation of display_x/display_y could result in arithmetic underflow, as the calculation was performed on unsigned int and assigned to signed in. Also, ignore the PSP specific display constants on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1100 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-02 10:10:02 +00:00
strmnnrmn
de11411cbc [~] Tidy up GraphicsContext Clear functions - the overloading was a bit confusing so I renamed them. Clear(bool,bool) only ever took (true,true) as arguments, so just call it ClearToBlack and simplify the code a bit
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1089 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-24 11:09:22 +00:00
strmnnrmn
997c07e717 [~] ifdef out some PSPRenderer code so it compiles on OSX
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1079 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:43 +00:00
strmnnrmn
7b37631972 [~] Add a Round function to Math.h, to provide some platform independence for pspFpuRound
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1078 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:36 +00:00
strmnnrmn
2cd54e7536 [~] GraphicsContext UpdateFrame return was unused. Rename GetBufferSize to GetScreenSize, and use to avoid exposing SCR_WIDTH/SCR_HEIGHT
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1077 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:52:29 +00:00
strmnnrmn
6b17ef92bc [~] Move gFrameskipActive to DLParser.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1073 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:56 +00:00
strmnnrmn
15d2222666 [~] Avoid casting away constness
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1072 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:48 +00:00
strmnnrmn
47af5b53cc [~] Make some const casting clearer
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1071 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:41 +00:00
strmnnrmn
e9cb09a141 [~] Fix indentation
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1070 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:35 +00:00
strmnnrmn
40aa5b71df [~] filepath can never be null here \!
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1067 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:14 +00:00
strmnnrmn
cfbfb6f4b0 [~] Silence a warning about an unused variable
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1066 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-23 15:51:07 +00:00
strmnnrmn
7257c5f190 [~] Replace uses of pspFpuAbs with an Abs wrapper function (platform independence)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1046 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 22:07:34 +00:00
strmnnrmn
5ecb4a0edb [!] RDP_MoveMemViewport was trying to printf past the end of the scale and trans arrays (thanks clang\!)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1045 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 22:07:25 +00:00
strmnnrmn
bcdaf8e22c [~] Fix some whitespace issues
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1043 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-20 22:07:12 +00:00
salvy
9bcda57231 [!] Use triangle strip for Draw2DTexture (Since we need to flip some sprites)
[+] Implement sprite flip for Sprite2D (fixes SSV's sprites in main screen)
[!] Fixed sprites and text being scrambled in Wipeout (Text is being rendered as "A", texture update bug?)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1033 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-19 21:11:39 +00:00
salvy
dba8dfc796 [!] Fixed PSP debug build
[!] Fixed error in oshle that caused a branch assumption error
[!] Detect newer PSP revisions..ex E100 etc, also fixed a bad detection
[~] Some clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1029 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 23:07:58 +00:00
strmnnrmn
066b94e0f7 [~] There's no need to use the fast PSP-specific versions of these functions
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1022 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 21:00:11 +00:00
strmnnrmn
319601baa1 [~] Encapsulate some display list debugger state
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1021 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 21:00:03 +00:00
strmnnrmn
9269769d4a [~] Remove a cyclic dependency between Microcode.cpp and DLParser.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1020 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-18 20:59:55 +00:00
strmnnrmn
a629bb2803 [~] Move some DL debugging code (printf style, not the interactive debugger) to a separate DLDebug.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1019 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 21:27:37 +00:00
strmnnrmn
ae45a98925 [~] G_TT_RGBA16 etc were redefined from the values in ultra_gbi.h, which is confusing. Just define our own enum which defines these in the range 0..3
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1004 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 19:44:14 +00:00
strmnnrmn
0017427c39 [~] Fix linendings on a couple of files in HLEGraphics. Otherwise no functional changes
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1003 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-17 19:44:08 +00:00
Corn
da0a5b4461 [!] DKR: Use already available matrix stack(improve data cache locality) Removed global variable for stack indexing.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@957 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-16 12:36:39 +00:00
salvy
3c9d4dd45a [!] Clean ups in mtx code
[!] DKR, do not borrow from the mtx stack, just use an aligned variable (cheaper)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@956 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-16 08:17:10 +00:00
salvy
f40c2467c1 [-] Opps! Reverted previous commit
[~] Some minor clean ups

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@940 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-04 05:24:50 +00:00
salvy
ec720ad37c [!] Optimized Tri ucodes (convert MicroCodeCommand reference to pointer to easily access next command)
Note: We could avoid this convention by declaring MicroCodeCommand as pointer instead of reference, but this causes the compiler to no longer optimize our bitfields with (ext/inst)

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@939 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-04 03:44:48 +00:00
salvy
55b6127d8d [!] Small optimization in DMA_Tri_DKR
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@938 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-04 03:09:31 +00:00
Corn
fd472f60df [!] PspFastRand() is now just FastRand().
[!] Make sure to invalidate regs when exiting a fragment.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@937 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 21:59:04 +00:00
strmnnrmn
3e18c63840 [~] RDP_SetTile and RSP_SetTileSize are no longer defined
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@921 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-02-03 17:41:43 +00:00