added/modified shared_info to (better) support upto 32 3D accelants. Needs to be improved/expanded later though.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13212 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -205,25 +205,16 @@ typedef struct {
|
|||||||
} dma;
|
} dma;
|
||||||
bool agp_mode; /* card is running in AGP mode */
|
bool agp_mode; /* card is running in AGP mode */
|
||||||
struct {
|
struct {
|
||||||
/* number of active 3D accelerant 'clones' */
|
uint32 clones; /* clone 'number' (mask, slot) (one bit per clone) */
|
||||||
uint8 clones;
|
uint32 reload; /* reload state and surfaces (one bit per clone) */
|
||||||
/* instruct 3D accelerants to reload their render states (a bit per clone) */
|
uint32 newmode; /* re-allocate all buffers (one bit per clone) */
|
||||||
uint32 reload_state_3D;
|
//fixme: memory stuff needs to be expanded (shared texture allocation?)
|
||||||
|
uint32 mem_low; /* ptr to first free mem adress: cardmem local offset */
|
||||||
|
uint32 mem_high; /* ptr to last free mem adress: cardmem local offset */
|
||||||
|
bool mode_changing; /* a mode-change is in progress (set/clear by 2D drv) */
|
||||||
} threeD;
|
} threeD;
|
||||||
} engine;
|
} engine;
|
||||||
|
|
||||||
/* fixme:
|
|
||||||
* the stuff below has to be extended and/or changed I guess:
|
|
||||||
* for now only a single 3D 'clone' driver is supported. */
|
|
||||||
/* pointers to first and last free memory adress for 3D use: cardmem local offsets */
|
|
||||||
uint32 mem_low;
|
|
||||||
uint32 mem_high;
|
|
||||||
/* flag to inform 3D add-on to stop rendering (set by 2D, reset by 3D drv) */
|
|
||||||
bool mode_changed;
|
|
||||||
/* flag to inform 3D add-on a mode-change is currently in progress
|
|
||||||
* (set and reset by 2D drv) */
|
|
||||||
bool mode_changing;
|
|
||||||
|
|
||||||
/* card info - information gathered from PINS (and other sources) */
|
/* card info - information gathered from PINS (and other sources) */
|
||||||
enum
|
enum
|
||||||
{ // card_type in order of date of NV chip design
|
{ // card_type in order of date of NV chip design
|
||||||
|
|||||||
Reference in New Issue
Block a user