summaryrefslogtreecommitdiff
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
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 26a700038..5e169ff69 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -300,7 +300,18 @@ struct Regs {
300 BitField<24, 8, u32> const_a; 300 BitField<24, 8, u32> const_a;
301 }; 301 };
302 302
303 INSERT_PADDING_WORDS(0x1); 303 union {
304 BitField< 0, 2, u32> color_scale;
305 BitField<16, 2, u32> alpha_scale;
306 };
307
308 inline unsigned GetColorMultiplier() const {
309 return (color_scale < 3) ? (1 << color_scale) : 1;
310 }
311
312 inline unsigned GetAlphaMultiplier() const {
313 return (alpha_scale < 3) ? (1 << alpha_scale) : 1;
314 }
304 }; 315 };
305 316
306 TevStageConfig tev_stage0; 317 TevStageConfig tev_stage0;