summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-01-27 03:10:09 +0100
committerbunnei <bunneidev@gmail.com>2015-01-27 20:39:17 +0100
commitb2c55bf772f2436db04357c2689302b98d9f0b26 (patch)
tree6033ef7dc8357d8425a075565f4357abf69cde2f /src/video_core/pica.h
parentMerge pull request #508 from lioncash/dyn (diff)
downloadyuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar.gz
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar.bz2
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar.lz
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar.xz
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.tar.zst
yuzu-b2c55bf772f2436db04357c2689302b98d9f0b26.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/pica.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 15850ba17..a19f4190c 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -310,7 +310,7 @@ struct Regs {
};
struct {
- enum DepthFunc : u32 {
+ enum CompareFunc : u32 {
Never = 0,
Always = 1,
Equal = 2,
@@ -357,11 +357,19 @@ struct Regs {
BitField<0, 4, Op> op;
} logic_op;
- INSERT_PADDING_WORDS(0x4);
+ INSERT_PADDING_WORDS(0x1);
+
+ union {
+ BitField< 0, 1, u32> enable;
+ BitField< 4, 3, CompareFunc> func;
+ BitField< 8, 8, u32> ref;
+ } alpha_test;
+
+ INSERT_PADDING_WORDS(0x2);
union {
BitField< 0, 1, u32> depth_test_enable;
- BitField< 4, 3, DepthFunc> depth_test_func;
+ BitField< 4, 3, CompareFunc> depth_test_func;
BitField<12, 1, u32> depth_write_enable;
};