1 /*
2    Copyright (c) 2003 Andreas Robinson, All rights reserved.
3 
4    This library is free software; you can redistribute it and/or
5    modify it under the terms of the GNU Lesser General Public
6    License as published by the Free Software Foundation; either
7    version 2 of the License, or (at your option) any later version.
8 */
9 
10 #ifndef __UC_STATE__
11 #define __UC_STATE__
12 
13 #include <directfb.h>
14 #include <core/state.h>
15 #include <core/gfxcard.h>
16 
17 void uc_set_state(void *drv, void *dev, GraphicsDeviceFuncs *funcs,
18                   CardState *state, DFBAccelerationMask accel);
19 void uc_check_state(void *drv, void *dev,
20                     CardState *state, DFBAccelerationMask accel);
21 
22 
23 
24 /*
25 struct uc_hw_misc
26 {
27     // These control clipping...
28 
29     u32 regHClipTB;
30     u32 regHClipLR;
31     u32 regHFPClipTL;
32     u32 regHFPClipBL;
33     u32 regHFPClipLL;
34     u32 regHFPClipRL;
35     u32 regHFPClipTBH;
36     u32 regHFPClipLRH;
37 
38     // Other functions
39 
40     u32 regHLP;             // Line stipple pattern
41     u32 regHLPRF;           // Line stipple factor
42     u32 regHSolidCL;        // --- Don't know. Unused in DRI.
43     u32 regHPixGC;          // Don't know. Is kept cleared in DRI.
44     //u32 regHSPXYOS;       // Polygon stipple x and y offsets. Unused here.
45     u32 regHVertexCNT;      // --- Don't know. Unused in DRI.
46 
47     u8 ps_xos;              // Polygon stipple x-offset. => regHSPXYOS
48     u8 ps_yos;              // Polygon stipple y-offset. => regHSPXYOS
49     u32 ps_pat[32];         // Polygon stipple pattern buffer.
50                             // These are not registers...
51 };
52 
53 
54 /// Stencil control.
55 
56 struct uc_hw_stencil
57 {
58     //u32 regHSBBasL;       // These aren't in regs3d.h, but they should exist...
59     //u32 regHSBBasH;
60     //u32 regHSBFM;
61 
62     u32 regHSTREF;          // Stencil reference value and plane mask
63     u32 regHSTMD;           // Stencil test function and fail operation and
64                             // zpass/zfail operations.
65 };
66 */
67 
68 #endif // __UC_STATE__
69