summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_x64.cpp
AgeCommit message (Collapse)Author
2021-12-10Treewide: Adjust order of includesPokechu22
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-04-02Replace uses of cassert with Common/Assert.hPokechu22
2020-11-17VideoCommon: Migrate over to fmtLioncash
Migrates off the printf-based formatting where applicable.
2019-05-04Replace MathUtil::Clamp with std::clampLéo Lam
2019-04-21TextureDecoder: Move XFB decoding to CommonStenzek
This was previously missing for generic (which is used on ARM).
2017-11-17Hybrid XFB: Fix lint errorsiwubcode
2017-11-17HybridXFB: Fix lint errorsiwubcode
2017-11-17Add support for hybrid XFBiwubcode
2017-08-03Video: Clearly separate Texture and EFB Copy formatsN.E.C
Improve bookkeeping around formats. Hopefully make code less confusing. - Rename TlutFormat -> TLUTFormat to follow conventions. - Use enum classes to prevent using a Texture format where an EFB Copy format is expected or vice-versa. - Use common EFBCopyFormat names regardless of depth and YUV configurations.
2017-03-13Merge pull request #4548 from stenzek/gcc-sseMarkus Wick
Support SSSE3 texture decoders and CRC32 hashing on non-native builds (gcc)
2017-03-03Common: Move byte swapping utilities into their own headerLioncash
This moves all the byte swapping utilities into a header named Swap.h. A dedicated header is much more preferable here due to the size of the code itself. In general usage throughout the codebase, CommonFuncs.h was generally only included for these functions anyway. These being in their own header avoids dumping the lesser used utilities into scope. As well as providing a localized area for more utilities related to byte swapping in the future (should they be needed). This also makes it nicer to identify which files depend on the byte swapping utilities in particular. Since this is a completely new header, moving the code uncovered a few indirect includes, as well as making some other inclusions unnecessary.
2017-01-24TextureDecoder: Use target attributes on SSSE3 decodersStenzek
2017-01-15TextureDecoder: Deduplicate some utility codehthh
2017-01-14TextureDecoder: Fix off-by-one errors in CMPRhthh
2017-01-10TextureDecoder: Seperate each format into its own functionStenzek
2016-12-19VideoCommon: Use avg(color1, color2) for color3 in CMPR texturesStenzek
2016-06-24Reformat all the things. Have fun with merge conflicts.Pierre Bourdon
2016-01-17VideoCommon: Header cleanupLioncash
Also remedies places where the video backends and core rely on things being indirectly included.
2015-09-29TextureDecoder_x64: Remove unnecessary commented out headerLioncash
2015-09-29TextureDecoder_x64: Remove clang warning suppressionLioncash
This was an issue two years ago on clang 3.3
2015-09-06General: Replace GC_ALIGN macros with alignasLioncash
Standard supported alignment -> out with compiler-specific.
2015-05-25Set copyright year to when a file was createdTillmann Karras
2015-05-25Update license headers to GPLv2+Tillmann Karras
2015-02-24Clean up the intrinsics #ifdef messTillmann Karras
2015-01-18TexCache: remove PC_TexFormatdegasus
We only support rgba32 for a while now, so there is no need to have everything in common configureable.
2014-11-06Destroy OpenMPJasper St. Pierre
2014-09-19Fix build failing when disabling precompiled headers.Rohit Nirmal
2014-09-08Include CommonTypes.h instead of Common.h.Rohit Nirmal
2014-09-06Remove unused functions in TextureDecoder.comex
2014-09-05Remove more dead and redundant code.Rohit Nirmal
2014-09-04TextureDecoder: Clean up the code styleJasper St. Pierre
For a long time, we've had ugly and inconsistent function names here as helpers, names like "decodebytesRGB5A3rgba" which are absolutely incomprehensible to understand. Fix this by introducing a new consistent naming scheme, where the above function now becomes "DecodeBytes_RGB5A3".
2014-09-04TextureDecoder: Pass the TLUT address straight into the texture decoderJasper St. Pierre
This removes the requirement for the TextureDecoder to have access to global texture memory.
2014-09-04TextureDecoder: Add an enum for the TLUT formatsJasper St. Pierre
Quick code cleanup. The enum names and values come from libogc.
2014-09-04TextureDecoder: Add some statics to some of our helper functionsJasper St. Pierre
I know these are already inline, but this makes it more clear that they're helper functions to be used in this file only.
2014-09-04VideoCommon: Remove support for decoding to ARGB texturesJasper St. Pierre
The D3D / OGL backends only ever used RGBA textures, and the Software backend uses its own custom code for sampling. The ARGB path seems to just be dead code. Since ARGB and RGBA formats are similar, I don't think this will make the code more difficult to read or unable to be used as reference. Somebody who wants to use this code to output ARGB can simply modify the MakeRGBA function to put the shift at the other end.
2014-09-04VideoCommon: Start putting common texture decoding code in TextureDecoder_CommonJasper St. Pierre
This pulls all the duplicate code from TextureDecoder_Generic / TextureDecoder_x64 out and puts it in a common file. Out custom font used for debugging the texture cache is also pulled out and put in a common "sfont.inc" file. At some point we should also combine this font with the other six binary fonts we ship.
2014-09-04TextureDecoder: Remove unused functionJasper St. Pierre
GetPC_TexFormat was never used. It was added in commit d02426a, with the only user being commented out code. The commented out code was later removed in 9893122, but the implementation stayed.
2014-09-04TextureDecoder: Fix a RGBA/BGRA copy/paste typoJasper St. Pierre
We were decoding to BGRA32 textures in our RGBA32 texture decoder. Since this is the same for the BGRA32 decoder implementation, this is most likely a copy/paste typo, rather than the texture actually being bit-swapped. Fix this. I'm not sure of any games that use the C14X2 texture format, so I'm not sure this fixes any games, but it does make the code cleaner for when we clean it up in the future, and merge some of these similar loops.
2014-08-30VideoCommon: Clean up brace placementsLioncash
2014-07-15VideoCommon: fix ifdef expressionTillmann Karras
2014-07-14VideoCommon: make version check easier to readTillmann Karras
2014-07-14VideoCommon: fix clang version checkTillmann Karras
That was... er... a typo!
2014-07-14VideoCommon: version-check clang for workaroundTillmann Karras
The bug was fixed in clang 3.4.
2014-07-13Fix warnings unearthed by #579Tillmann Karras
2014-07-11avoid the extern keyword in .cpp filesdegasus
2014-07-11mark all local variables as staticdegasus
2014-07-11mark all local functions as staticdegasus
2014-06-08Fix the capitalization of "GameCube" throughout the project.Paul Olszewski
2014-05-29Remove the min/max functions in CommonFuncs.Lioncash
The algorithm header has the same functions.