diff options
author | Dave Airlie <airlied@linux.ie> | 2009-08-26 14:03:48 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-08-26 14:03:48 +1000 |
commit | b6df23d8b3e70d86433ba9fc4d87338e1063fe39 (patch) | |
tree | dd1738f3a4e529473220ae0579078914c966a73f /src/mesa/drivers/dri/r200/r200_state_init.c | |
parent | 5484428d7267388fde868e64531dcdf98b55fafc (diff) | |
download | external_mesa3d-b6df23d8b3e70d86433ba9fc4d87338e1063fe39.zip external_mesa3d-b6df23d8b3e70d86433ba9fc4d87338e1063fe39.tar.gz external_mesa3d-b6df23d8b3e70d86433ba9fc4d87338e1063fe39.tar.bz2 |
radeon/r200: OQ support for r200 in theory.
this is an untested port of the r100 OQ code
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_state_init.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state_init.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state_init.c b/src/mesa/drivers/dri/r200/r200_state_init.c index 42d6625..4c484d0 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -51,6 +51,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "r200_tcl.h" #include "r200_tex.h" #include "r200_swtcl.h" +#include "radeon_queryobj.h" #include "xmlpool.h" @@ -1596,6 +1597,12 @@ void r200InitState( r200ContextPtr rmesa ) r200LightingSpaceChange( ctx ); + if (rmesa->radeon.radeonScreen->kernel_mm) { + radeon_init_query_stateobj(&rmesa->radeon, R200_QUERYOBJ_CMDSIZE); + rmesa->radeon.query.queryobj.cmd[R200_QUERYOBJ_CMD_0] = CP_PACKET0(RADEON_RB3D_ZPASS_DATA, 0); + rmesa->radeon.query.queryobj.cmd[R200_QUERYOBJ_DATA_0] = 0; + } + rmesa->radeon.hw.all_dirty = GL_TRUE; rcommonInitCmdBuf(&rmesa->radeon); |