summaryrefslogtreecommitdiffstats
path: root/src/video_core/pica.h
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2016-01-25 07:59:16 +0100
committerYuri Kunde Schlesner <yuriks@yuriks.net>2016-06-28 06:14:39 +0200
commitf0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324 (patch)
tree5980ec623e974d6c9b71291d417365cfbe4ae4fc /src/video_core/pica.h
parentPICA: Implement scissor test (diff)
downloadyuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar.gz
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar.bz2
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar.lz
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar.xz
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.tar.zst
yuzu-f0b9bc14b64765bd8bc78cb4cfb4a30eb9ab9324.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/pica.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/video_core/pica.h b/src/video_core/pica.h
index 065a3fd0c..7099c31a0 100644
--- a/src/video_core/pica.h
+++ b/src/video_core/pica.h
@@ -128,22 +128,14 @@ struct Regs {
BitField<0, 2, ScissorMode> mode;
union {
- BitField< 0, 16, u32> right;
- BitField<16, 16, u32> bottom;
+ BitField< 0, 16, u32> x1;
+ BitField<16, 16, u32> y1;
};
union {
- BitField< 0, 16, u32> left_minus_1;
- BitField<16, 16, u32> top_minus_1;
+ BitField< 0, 16, u32> x2;
+ BitField<16, 16, u32> y2;
};
-
- u32 GetTop() const {
- return top_minus_1 + 1;
- }
-
- u32 GetLeft() const {
- return left_minus_1 + 1;
- }
} scissor_test;
union {