aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-01-31 01:40:05 -0500
committerGravatar bunnei <bunneidev@gmail.com>2015-01-31 01:40:05 -0500
commit72cc512b1eb3717ba0f24df6dd60f61527ae2354 (patch)
tree316c69f6712a7ddbf99a16c661fa482fec7b3c25 /src/video_core/pica.h
parentdbff4e5e1226e16fdf5d79f2b57847bb5107149a (diff)
Pica: Implement blend factors.
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 78603ebd..2506bf78 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -332,11 +332,21 @@ struct Regs {
};
enum BlendFactor : u32 {
- Zero = 0,
- One = 1,
-
- SourceAlpha = 6,
- OneMinusSourceAlpha = 7,
+ Zero = 0,
+ One = 1,
+ SourceColor = 2,
+ OneMinusSourceColor = 3,
+ DestColor = 4,
+ OneMinusDestColor = 5,
+ SourceAlpha = 6,
+ OneMinusSourceAlpha = 7,
+ DestAlpha = 8,
+ OneMinusDestAlpha = 9,
+ ConstantColor = 10,
+ OneMinusConstantColor = 11,
+ ConstantAlpha = 12,
+ OneMinusConstantAlpha = 13,
+ SourceAlphaSaturate = 14
};
BitField< 0, 8, BlendEquation> blend_equation_rgb;
@@ -357,7 +367,12 @@ struct Regs {
BitField<0, 4, Op> op;
} logic_op;
- INSERT_PADDING_WORDS(0x1);
+ union {
+ BitField< 0, 8, u32> r;
+ BitField< 8, 8, u32> g;
+ BitField<16, 8, u32> b;
+ BitField<24, 8, u32> a;
+ } blend_const;
union {
BitField< 0, 1, u32> enable;