summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureDecoder_Common.cpp
AgeCommit message (Collapse)Author
2015-02-25Formatting/Whitespace CleanupStevoisiak
Various fixes to formatting and whitespace
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-12-11Silence some -Wswitch-default warnings.Rohit Nirmal
2014-09-19Fix build failing when disabling precompiled headers.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: Simplify how the reference texture decoder worksJasper St. Pierre
Instead of having three separate functions and checking the tlutfmt in a variety of places, just do it once in a helper method. This is already for the slow path either in our Generic decoder or in our Software renderer, so it doesn't matter that this is slower. x64 will continue using the separate functions for speed.
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-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.