summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-08-30 02:06:25 +0200
committerbunnei <bunneidev@gmail.com>2015-08-30 02:06:25 +0200
commit58e9f78844168e2770bf0b43d6931569642f27fb (patch)
treef0a3705f7e09bf6a067467553eac2119a691984b /src/video_core/pica.h
parentMerge pull request #1080 from yuriks/linear-heap-base-typo (diff)
parentHWRenderer: Added a workaround for the Intel Windows driver bug that causes glTexSubImage2D to not change the stencil buffer. (diff)
downloadyuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar.gz
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar.bz2
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar.lz
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar.xz
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.tar.zst
yuzu-58e9f78844168e2770bf0b43d6931569642f27fb.zip
Diffstat (limited to 'src/video_core/pica.h')
-rw-r--r--src/video_core/pica.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index bb689f2a9..f40684d83 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -441,8 +441,14 @@ struct Regs {
};
enum class StencilAction : u32 {
- Keep = 0,
- Xor = 5,
+ Keep = 0,
+ Zero = 1,
+ Replace = 2,
+ Increment = 3,
+ Decrement = 4,
+ Invert = 5,
+ IncrementWrap = 6,
+ DecrementWrap = 7
};
struct {
@@ -481,23 +487,29 @@ struct Regs {
struct {
union {
+ // Raw value of this register
+ u32 raw_func;
+
// If true, enable stencil testing
BitField< 0, 1, u32> enable;
// Comparison operation for stencil testing
BitField< 4, 3, CompareFunc> func;
- // Value to calculate the new stencil value from
- BitField< 8, 8, u32> replacement_value;
+ // Mask used to control writing to the stencil buffer
+ BitField< 8, 8, u32> write_mask;
// Value to compare against for stencil testing
BitField<16, 8, u32> reference_value;
// Mask to apply on stencil test inputs
- BitField<24, 8, u32> mask;
+ BitField<24, 8, u32> input_mask;
};
union {
+ // Raw value of this register
+ u32 raw_op;
+
// Action to perform when the stencil test fails
BitField< 0, 3, StencilAction> action_stencil_fail;