/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/ZZHacks.h
ViewVC logotype

Contents of /branch/debug/0.X/0.9.X/0.9.7/ramdump-lateset/plugins/zzogl-pg/opengl/ZZHacks.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 314 - (show annotations) (download)
Sun Dec 26 18:56:19 2010 UTC (9 years, 2 months ago) by william
File MIME type: text/plain
File size: 3712 byte(s)
** merged upstream r4049 (re-integration of GregMiscellaneous branch)
** applied patched to GigTranser.cpp in ZZOgl from r4140 to change 'static int count = 0;' to 'static int path1_count = 0;')
1 #ifndef ZZHACKS_H_INCLUDED
2 #define ZZHACKS_H_INCLUDED
3
4 #include "PS2Edefs.h"
5
6 // This is a list of the various hacks, and what bit controls them.
7 // Changing these is not advised unless you know what you are doing.
8 enum GAME_HACK_OPTIONS
9 {
10 GAME_TEXTURETARGS = 0x00000001,
11 GAME_AUTORESET = 0x00000002,
12 GAME_INTERLACE2X = 0x00000004,
13 GAME_TEXAHACK = 0x00000008, // apply texa to non textured polys
14 GAME_NOTARGETRESOLVE = 0x00000010,
15 GAME_EXACTCOLOR = 0x00000020,
16 GAME_NOCOLORCLAMP = 0x00000040,
17 GAME_FFXHACK = 0x00000080,
18 GAME_NOALPHAFAIL = 0x00000100,
19 GAME_NODEPTHUPDATE = 0x00000200,
20 GAME_QUICKRESOLVE1 = 0x00000400,
21 GAME_NOQUICKRESOLVE = 0x00000800,
22 GAME_NOTARGETCLUT = 0x00001000, // full 16 bit resolution
23 GAME_NOSTENCIL = 0x00002000,
24 GAME_VSSHACKOFF = 0x00004000, // vertical stripe syndrome
25 GAME_NODEPTHRESOLVE = 0x00008000,
26 GAME_FULL16BITRES = 0x00010000,
27 GAME_RESOLVEPROMOTED = 0x00020000,
28 GAME_FASTUPDATE = 0x00040000,
29 GAME_NOALPHATEST = 0x00080000,
30 GAME_DISABLEMRTDEPTH = 0x00100000,
31 GAME_32BITTARGS = 0x00200000,
32 GAME_PATH3HACK = 0x00400000,
33 GAME_DOPARALLELCTX = 0x00800000, // tries to parallelize both contexts so that render calls are reduced (xenosaga)
34 // makes the game faster, but can be buggy
35 GAME_XENOSPECHACK = 0x01000000, // xenosaga specularity hack (ignore any zmask=1 draws)
36 GAME_PARTIALPOINTERS = 0x02000000, // whenver the texture or render target are small, tries to look for bigger ones to read from
37 GAME_PARTIALDEPTH = 0x04000000, // tries to save depth targets as much as possible across height changes
38 GAME_REGETHACK = 0x08000000, // some sort of weirdness in ReGet() code
39 GAME_GUSTHACK = 0x10000000, // Needed for Gustgames fast update.
40 GAME_NOLOGZ = 0x20000000, // Intended for linux -- not logarithmic Z.
41 GAME_AUTOSKIPDRAW = 0x40000000, // Remove blur effect on some games
42 GAME_RESERVED_HACK = 0x80000000
43 };
44
45 #define USEALPHATESTING (!(conf.settings().no_alpha_test))
46
47 typedef union
48 {
49 struct
50 {
51 u32 texture_targs : 1;
52 u32 auto_reset : 1;
53 u32 interlace_2x : 1;
54 u32 texa : 1; // apply texa to non textured polys
55 u32 no_target_resolve : 1;
56 u32 exact_color : 1;
57 u32 no_color_clamp : 1;
58 u32 ffx : 1;
59 u32 no_alpha_fail : 1;
60 u32 no_depth_update : 1;
61 u32 quick_resolve_1 : 1;
62 u32 no_quick_resolve : 1;
63 u32 no_target_clut : 1; // full 16 bit resolution
64 u32 no_stencil : 1;
65 u32 vss_hack_off : 1; // vertical stripe syndrome
66 u32 no_depth_resolve : 1;
67 u32 full_16_bit_res : 1;
68 u32 resolve_promoted : 1;
69 u32 fast_update : 1;
70 u32 no_alpha_test : 1;
71 u32 disable_mrt_depth : 1;
72 u32 args_32_bit : 1;
73 u32 path3 : 1;
74 u32 parallel_context : 1; // tries to parallelize both contexts so that render calls are reduced (xenosaga)
75 // makes the game faster, but can be buggy
76 u32 xenosaga_spec : 1; // xenosaga specularity hack (ignore any zmask=1 draws)
77 u32 partial_pointers : 1; // whenver the texture or render target are small, tries to look for bigger ones to read from
78 u32 partial_depth : 1; // tries to save depth targets as much as possible across height changes
79 u32 reget : 1; // some sort of weirdness in ReGet() code
80 u32 gust : 1; // Needed for Gustgames fast update.
81 u32 no_logz : 1; // Intended for linux -- not logarithmic Z.
82 u32 automatic_skip_draw :1; // allow debug of the automatic skip draw option
83 u32 reserved2 :1;
84 };
85 u32 _u32;
86 } gameHacks;
87
88 #define HACK_NUMBER 25
89 extern u32 hackList[HACK_NUMBER];
90 extern char hackDesc[32][64];
91 extern int CurrentHack;
92
93 extern void ReportHacks(gameHacks hacks);
94 extern void ListHacks();
95
96 extern void DisplayHack(int hack);
97 extern void ChangeCurrentHack(int hack);
98
99 #endif // ZZHACKS_H_INCLUDED

  ViewVC Help
Powered by ViewVC 1.1.22