summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.h
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-05-18 11:12:06 +0200
committerTony Wasserka <neobrainx@gmail.com>2014-05-18 11:12:06 +0200
commit6950f533aee33cbdce7ecfd5f59e3aba3836e730 (patch)
tree4ecead69475c6534985e102cdcb0967cdc2e15c5 /Source/Core/VideoCommon/OpcodeDecoding.h
parentdb96f862d2d7b0520b1cbae3b72ea6af1af5383e (diff)
parent9b82d720705c8e6fd34c336a92dde5a8b10471b9 (diff)
Merge pull request #355 from magumagu/gx-missing-opcode
Opcode decoding: handle missing opcodes 0x88 etc.
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.h')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.h b/Source/Core/VideoCommon/OpcodeDecoding.h
index bdc4976825..baf44bd40f 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.h
+++ b/Source/Core/VideoCommon/OpcodeDecoding.h
@@ -22,15 +22,17 @@
#define GX_PRIMITIVE_SHIFT 3
#define GX_VAT_MASK 0x07
-//these are defined 1/8th of their real values and without their top bit
+// These values are the values extracted using GX_PRIMITIVE_MASK
+// and GX_PRIMITIVE_SHIFT.
+// GX_DRAW_QUADS_2 behaves the same way as GX_DRAW_QUADS.
#define GX_DRAW_QUADS 0x0 // 0x80
+#define GX_DRAW_QUADS_2 0x1 // 0x88
#define GX_DRAW_TRIANGLES 0x2 // 0x90
#define GX_DRAW_TRIANGLE_STRIP 0x3 // 0x98
#define GX_DRAW_TRIANGLE_FAN 0x4 // 0xA0
#define GX_DRAW_LINES 0x5 // 0xA8
#define GX_DRAW_LINE_STRIP 0x6 // 0xB0
#define GX_DRAW_POINTS 0x7 // 0xB8
-#define GX_DRAW_NONE 0x1; // This is a fake value to used in the backends
extern bool g_bRecordFifoData;