diff options
| author | 2014-12-31 15:08:07 +0100 | |
|---|---|---|
| committer | 2014-12-31 16:32:55 +0100 | |
| commit | 614baa39d1bc1489c25acf3578ae7f99cc1b5ad0 (patch) | |
| tree | d7a5a0694d92e14fec90a895c578d56a4ebbbac8 /src | |
| parent | Pica/Rasterizer: Fix a bug related to multitexturing and texture wrapping. (diff) | |
| download | yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.gz yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.xz yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.zip | |
VideoCore: Remove some unused functions.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/utils.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/video_core/utils.h b/src/video_core/utils.h index 63ebccbde..6fd640425 100644 --- a/src/video_core/utils.h +++ b/src/video_core/utils.h | |||
| @@ -8,32 +8,6 @@ | |||
| 8 | 8 | ||
| 9 | #include "common/common_types.h" | 9 | #include "common/common_types.h" |
| 10 | 10 | ||
| 11 | namespace FormatPrecision { | ||
| 12 | |||
| 13 | /// Adjust RGBA8 color with RGBA6 precision | ||
| 14 | static inline u32 rgba8_with_rgba6(u32 src) { | ||
| 15 | u32 color = src; | ||
| 16 | color &= 0xFCFCFCFC; | ||
| 17 | color |= (color >> 6) & 0x03030303; | ||
| 18 | return color; | ||
| 19 | } | ||
| 20 | |||
| 21 | /// Adjust RGBA8 color with RGB565 precision | ||
| 22 | static inline u32 rgba8_with_rgb565(u32 src) { | ||
| 23 | u32 color = (src & 0xF8FCF8); | ||
| 24 | color |= (color >> 5) & 0x070007; | ||
| 25 | color |= (color >> 6) & 0x000300; | ||
| 26 | color |= 0xFF000000; | ||
| 27 | return color; | ||
| 28 | } | ||
| 29 | |||
| 30 | /// Adjust Z24 depth value with Z16 precision | ||
| 31 | static inline u32 z24_with_z16(u32 src) { | ||
| 32 | return (src & 0xFFFF00) | (src >> 16); | ||
| 33 | } | ||
| 34 | |||
| 35 | } // namespace | ||
| 36 | |||
| 37 | namespace VideoCore { | 11 | namespace VideoCore { |
| 38 | 12 | ||
| 39 | /// Structure for the TGA texture format (for dumping) | 13 | /// Structure for the TGA texture format (for dumping) |