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