modified 3d reload flag to support 32 clones, added clone counter as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13175 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -161,8 +161,10 @@ status_t INIT_ACCELERANT(int the_fd) {
|
|||||||
|
|
||||||
/* count of issued parameters or commands */
|
/* count of issued parameters or commands */
|
||||||
si->engine.last_idle = si->engine.count = 0;
|
si->engine.last_idle = si->engine.count = 0;
|
||||||
/* tell a 3D add-on that it should reload it's state */
|
/* no 3D clones are currently loaded */
|
||||||
si->engine.reload_state_3D = true;
|
si->engine.threeD.clones = 0;
|
||||||
|
/* tell all 3D add-ons that they should reload their rendering states */
|
||||||
|
si->engine.threeD.reload_state_3D = 0xffffffff;
|
||||||
INIT_BEN(si->engine.lock);
|
INIT_BEN(si->engine.lock);
|
||||||
|
|
||||||
INIT_BEN(si->overlay.lock);
|
INIT_BEN(si->overlay.lock);
|
||||||
|
|||||||
@@ -1558,9 +1558,6 @@ void nv_acc_assert_fifo_dma(void)
|
|||||||
/* tell the engine to fetch and execute all (new) commands in the DMA buffer */
|
/* tell the engine to fetch and execute all (new) commands in the DMA buffer */
|
||||||
nv_start_dma();
|
nv_start_dma();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* the 3D add-on needs to reload the rendering state: issuing 2D cmds kills it! */
|
|
||||||
si->engine.reload_state_3D = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1625,6 +1622,9 @@ void SCREEN_TO_SCREEN_BLIT_DMA(engine_token *et, blit_params *list, uint32 count
|
|||||||
* executed before. */
|
* executed before. */
|
||||||
nv_start_dma();
|
nv_start_dma();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* tell all 3D add-ons that they should reload their rendering states */
|
||||||
|
si->engine.threeD.reload_state_3D = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* rectangle fill - i.e. workspace and window background color */
|
/* rectangle fill - i.e. workspace and window background color */
|
||||||
@@ -1674,6 +1674,9 @@ void FILL_RECTANGLE_DMA(engine_token *et, uint32 colorIndex, fill_rect_params *l
|
|||||||
* executed before. */
|
* executed before. */
|
||||||
nv_start_dma();
|
nv_start_dma();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* tell all 3D add-ons that they should reload their rendering states */
|
||||||
|
si->engine.threeD.reload_state_3D = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* span fill - i.e. (selected) menuitem background color (Dano) */
|
/* span fill - i.e. (selected) menuitem background color (Dano) */
|
||||||
@@ -1722,6 +1725,9 @@ void FILL_SPAN_DMA(engine_token *et, uint32 colorIndex, uint16 *list, uint32 cou
|
|||||||
* executed before. */
|
* executed before. */
|
||||||
nv_start_dma();
|
nv_start_dma();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* tell all 3D add-ons that they should reload their rendering states */
|
||||||
|
si->engine.threeD.reload_state_3D = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* rectangle invert - i.e. text cursor and text selection */
|
/* rectangle invert - i.e. text cursor and text selection */
|
||||||
@@ -1771,4 +1777,7 @@ void INVERT_RECTANGLE_DMA(engine_token *et, fill_rect_params *list, uint32 count
|
|||||||
* executed before. */
|
* executed before. */
|
||||||
nv_start_dma();
|
nv_start_dma();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* tell all 3D add-ons that they should reload their rendering states */
|
||||||
|
si->engine.threeD.reload_state_3D = 0xffffffff;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user