aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-05-07 18:37:59 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-05-09 22:26:17 -0400
commit23e8be573ef047d8a0bee191f4065dbcd60a7f65 (patch)
treee4274244ccd93c0b4e15e84f551c99382e8169d9 /src/video_core/pica.h
parentff767eeb407b8c8eb372828a867677e6f0f107d5 (diff)
rasterizer: Implemented combiner output scaling.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 26a70003..5e169ff6 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -300,7 +300,18 @@ struct Regs {
BitField<24, 8, u32> const_a;
};
- INSERT_PADDING_WORDS(0x1);
+ union {
+ BitField< 0, 2, u32> color_scale;
+ BitField<16, 2, u32> alpha_scale;
+ };
+
+ inline unsigned GetColorMultiplier() const {
+ return (color_scale < 3) ? (1 << color_scale) : 1;
+ }
+
+ inline unsigned GetAlphaMultiplier() const {
+ return (alpha_scale < 3) ? (1 << alpha_scale) : 1;
+ }
};
TevStageConfig tev_stage0;