summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Wasserka <NeoBrainX@gmail.com>2014-12-31 15:08:07 +0100
committerTony Wasserka <NeoBrainX@gmail.com>2014-12-31 16:32:55 +0100
commit614baa39d1bc1489c25acf3578ae7f99cc1b5ad0 (patch)
treed7a5a0694d92e14fec90a895c578d56a4ebbbac8
parentPica/Rasterizer: Fix a bug related to multitexturing and texture wrapping. (diff)
downloadyuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.gz
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.bz2
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.lz
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.xz
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.tar.zst
yuzu-614baa39d1bc1489c25acf3578ae7f99cc1b5ad0.zip
-rw-r--r--src/video_core/utils.h26
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 @@
#include "common/common_types.h"
-namespace FormatPrecision {
-
-/// Adjust RGBA8 color with RGBA6 precision
-static inline u32 rgba8_with_rgba6(u32 src) {
- u32 color = src;
- color &= 0xFCFCFCFC;
- color |= (color >> 6) & 0x03030303;
- return color;
-}
-
-/// Adjust RGBA8 color with RGB565 precision
-static inline u32 rgba8_with_rgb565(u32 src) {
- u32 color = (src & 0xF8FCF8);
- color |= (color >> 5) & 0x070007;
- color |= (color >> 6) & 0x000300;
- color |= 0xFF000000;
- return color;
-}
-
-/// Adjust Z24 depth value with Z16 precision
-static inline u32 z24_with_z16(u32 src) {
- return (src & 0xFFFF00) | (src >> 16);
-}
-
-} // namespace
-
namespace VideoCore {
/// Structure for the TGA texture format (for dumping)