Commit graph

46 commits

Author SHA1 Message Date
Wally4000
3fec82b04d Remove stdafx.h for consistency 2022-03-22 18:06:17 +11:00
Wally4000
eadc1b3758 move from typedef to modern using declaration 2021-10-18 18:58:14 +11:00
Wally4000
15e3e2a1d0 Update to the Bazel Directory Structure.. 2020-08-22 18:42:41 +10:00
Carlos R
5470cebe96 Re-implement ConvertYUV16 for ConvertImage
*This is based off the accurate tmem implementation (ConvertTile), also simplified how we dispatch this texture format
*Removed workaround when the pallet is address is null, this no longer needed due to recent fixes
2020-08-09 23:38:01 -07:00
Carlos R
bfffb7be1c Removed duplicate from convertimage/tile
*Moved all the conversion routines to ConvertFormats.h
*Fixed a lot of wrong bitshift operations (Rinnegatamante)
2020-07-26 11:18:46 -07:00
=
1511baa25e Fix up paths in headers 2020-05-27 19:20:52 +10:00
Carlos R
934ea22c7f Fix crashes in Paper Mario and Yoshi
*Correct bad pointer casting for optimized copy in Yoshi_Memrect and fixed non optimized copy
*Store n64 ram offset rather than the system memory for Fast TMEM (thanks strmnnrmn!). Fixes random crashes when using the non accurate path for TMEM emulation
*Make sure to reset tmem block for fast TMEM even when accurate TMEM its used since we fall back to the non accurate path when games set line to 0
*Ignore load tile for accurate TMEM when line its 0, this was causing a crash in Paper Mario which sets line = 0
2020-05-16 16:09:17 -07:00
=
939fe5027d Add Rinne's commit to fix rendering issues. 2020-05-06 11:25:14 +10:00
=
1c342d8c8f Revert all initialiser list variables. 2020-05-04 12:24:21 +10:00
joey
dd1b590244 Fix osx buid 2020-04-17 13:27:49 -04:00
z2442
275aacd212 more nullptr updates 2019-05-03 21:09:20 -04:00
Ben Slater
6a725bf99e Removed a bunch of asserts / debug options from release build, stabs a bunch of compiler warnings 2019-05-03 17:43:44 +10:00
z2442
d90bac8ef5 clean up narrowing errors 2019-03-23 20:24:40 -04:00
Wally
874c4ebd91 Fixed some narrowing issues, reverted ME back to what it was.. Still playing up
Removed the Rounding mode stuff in the R4300.cpp
2019-03-23 23:02:18 +09:00
Wally
5dee7fe2cb Converted remaining HLEGraphics to C11 standard 2019-03-22 16:39:50 +09:00
Ben Slater
c562b76641 *Clean build from StrmnNrmns repo 2019-02-27 17:04:51 +11:00
Wally
8bc2012f0e Fix 64 bit support from StrmnNrmns Bazel branch 2019-02-04 13:52:39 +11:00
mrbenslater
2e6cf17baa Move more debug stuff out of Release 2019-01-21 19:58:47 +11:00
salvy
795992d473 [-] Removed partial tmem emulation
Note: There's now only two methods: fast or accurate tmem
2013-06-26 21:51:41 +01:00
strmnnrmn
f48bf60849 [~] Wrap a long line
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1363 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-23 00:13:10 +00:00
salvy
1a8aa9b8e1 [!] Fixed bad assumption for sprite2D in Glover
[!] Accurate TMEM can be used on the PSP (Just define DAEDALUS_ACCURATE_TMEM)
[!] Use StrmnNrmn's PrepareTexRectUVs for PSP(No need for hacks and I don't think is too expensive at the end)
[~] Fixed a SP DMA bug in W32 (I still think we should use the PSP method, since it works fine)
[~] Set rounding mode in W32/OSX (NOP for PSP)
[+] Handle more regs in MTC0
[~] Some clean ups


git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1358 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-22 06:55:04 +00:00
salvy
6e122cb4bc [~] Check for palette NULL is only needed when DAEDALUS_FAST_TMEM is defined
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1351 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 01:53:18 +00:00
strmnnrmn
c8225f941d [~] Rename ConvertGenericPalettised* to something a bit more meaningful
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1336 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:40:57 +00:00
strmnnrmn
cc9adb280e [*] Tidy/simplify/optimise CI texture conversion. For all dest formats we decode the palette first, which simplifies the conversion loop for the RGBA8888 case and means we can remove some duplicated code which is no longer needed.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1335 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:40:50 +00:00
strmnnrmn
7b79e66b00 [!] Fix crash on OSX when forcing the native texture format to RGBA 8888
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1334 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:40:44 +00:00
strmnnrmn
bb7cae6784 [+] Use ConvertTile when DAEDALUS_ACCURATE_TMEM is set
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1330 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:40:19 +00:00
strmnnrmn
d04bd5b013 [~] Shuffle around the arguments to ConvertTexture a bit. Define TextureDestInfo in the cpp file, and just plumb though the required arguments directly. All this so I can try to add a ConvertTile function which decodes directly from emulated TMEM.
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1307 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-20 00:37:19 +00:00
strmnnrmn
4c7520b103 [~] Give DoConversion a better name - ConvertTexture
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1275 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:51 +00:00
strmnnrmn
a3ebd92100 [~] Tidy ConvertTexture.cpp - drop the p_ prefixes and give vars consistent names throughout
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1274 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:44 +00:00
strmnnrmn
5fed5d198d [~] Liney uppy
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1273 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:37 +00:00
strmnnrmn
fbbd913457 [~] Tidy ConvertImage.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1272 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:31 +00:00
strmnnrmn
2c32785b8b [~] Move the logic for gConversionTable lokups to ConvertTexture.cpp
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1271 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:52:24 +00:00
strmnnrmn
96de19a570 [*] Rename TextureDecriptor.{h,cpp} to TextureInfo (match the class name)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@1258 42e9bfbe-799a-4a2d-bad1-236e862a387a
2013-03-12 20:50:48 +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
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
8ef65c6894 Fix mixed Windows/Unix line endings in a bunch of files. Add missing newlines before EOLs
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@849 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-12-08 14:20:20 +00:00
strmnnrmn
d7d116642a Fix more trailing whitespace (files with CRLF line endings?)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@825 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 23:23:11 +00:00
strmnnrmn
767e4efd9c Fix line endings
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@822 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-28 22:11:57 +00:00
Corn
d5231e638f [!] brought back TUC hack for OOT (text is scrambled)
[!] Fixed some typos + clean ups 

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@808 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-14 19:48:13 +00:00
salvy
3e7389df90 [!] Simplified when setting TlutAddress
[!] Moved out gVertexStride outside the Tris loop 
[!] Call directly TlutAddress (saves function call)
[!] Bring back recolour white texture (Is needed by Krby's clouds)
[~] Code clean ups etc

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@803 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-11-07 19:37:58 +00:00
Corn
396fcfe47a [!] Fixes some broken SSV textures
Note: probably need to rework how RDPStateManager loads textures for a proper fix.

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@790 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-10-28 21:39:20 +00:00
salvy
431750adf5 [+] Use a jump table for ConvertImage
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@757 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-29 20:43:27 +00:00
salvy
79d10a560f [!] Moved check if palette address is NULL for palette textures (Now is only check when trying to load a palletized texture)
[~] Removed unused tables from convert image

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@755 42e9bfbe-799a-4a2d-bad1-236e862a387a
2012-08-22 16:28:21 +00:00
Salvy
fb29b30d2a [!] Fixed a blendmode for Majora's Mask
[-] Removed RDP_EMULATE_TMEM option (It only slowed down and never helped any game, also added more logic to our code)
[!] Avoid setting Tile/TileSize twice
[!] Simplified parameters for SetTile/SetTileSize
[!] Simplified setting pitch tile

git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@385 42e9bfbe-799a-4a2d-bad1-236e862a387a
2011-08-29 01:34:19 +00:00
Salvy
bdbd952c60 [+] Initial repo (based from r630 dx64 branch)
git-svn-id: https://subversion.assembla.com/svn/Daedalusx64/trunk@3 42e9bfbe-799a-4a2d-bad1-236e862a387a
2010-12-24 04:37:41 +00:00