diff options
author | Jon Smirl <[email protected]> | 2004-03-12 05:22:13 +0000 |
---|---|---|
committer | Jon Smirl <[email protected]> | 2004-03-12 05:22:13 +0000 |
commit | d613cca2e47b5b2b4ce6f5222fde2cf137e989ef (patch) | |
tree | 58aca8791add692340e0bf7fa1637753ae71298b /src/mesa/drivers/dri/mga/mgastate.c | |
parent | ba5c49ab427d33915562b2c257db582c84eb7dd0 (diff) |
Adjust mga drivers to remove redundant h file for sarea and IOCTLs
Diffstat (limited to 'src/mesa/drivers/dri/mga/mgastate.c')
-rw-r--r-- | src/mesa/drivers/dri/mga/mgastate.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/drivers/dri/mga/mgastate.c b/src/mesa/drivers/dri/mga/mgastate.c index f16557dc1ef..56d9d77ca51 100644 --- a/src/mesa/drivers/dri/mga/mgastate.c +++ b/src/mesa/drivers/dri/mga/mgastate.c @@ -792,7 +792,7 @@ static void mgaXMesaSetBackClipRects( mgaContextPtr mmesa ) void mgaUpdateRects( mgaContextPtr mmesa, GLuint buffers ) { __DRIdrawablePrivate *driDrawable = mmesa->driDrawable; - MGASAREAPrivPtr sarea = mmesa->sarea; + drm_mga_sarea_t *sarea = mmesa->sarea; DRI_VALIDATE_DRAWABLE_INFO(mmesa->driScreen, driDrawable); @@ -959,7 +959,7 @@ static void mgaDDPrintDirty( const char *msg, GLuint state ) */ void mgaEmitHwStateLocked( mgaContextPtr mmesa ) { - MGASAREAPrivPtr sarea = mmesa->sarea; + drm_mga_sarea_t *sarea = mmesa->sarea; GLcontext * ctx = mmesa->glCtx; if (MGA_DEBUG & DEBUG_VERBOSE_MSG) @@ -1001,31 +1001,31 @@ void mgaEmitHwStateLocked( mgaContextPtr mmesa ) ((AC_src_one | AC_dst_zero) & ~mmesa->hw.blend_func_enable) | mmesa->hw.alpha_sel; - memcpy( &sarea->ContextState, &mmesa->setup, sizeof(mmesa->setup)); + memcpy( &sarea->context_state, &mmesa->setup, sizeof(mmesa->setup)); } if ((mmesa->dirty & MGA_UPLOAD_TEX0) && mmesa->CurrentTexObj[0]) { - memcpy(&sarea->TexState[0], + memcpy(&sarea->tex_state[0], &mmesa->CurrentTexObj[0]->setup, - sizeof(sarea->TexState[0])); + sizeof(sarea->tex_state[0])); } if ((mmesa->dirty & MGA_UPLOAD_TEX1) && mmesa->CurrentTexObj[1]) { - memcpy(&sarea->TexState[1], + memcpy(&sarea->tex_state[1], &mmesa->CurrentTexObj[1]->setup, - sizeof(sarea->TexState[1])); + sizeof(sarea->tex_state[1])); } if (mmesa->dirty & (MGA_UPLOAD_TEX0 | MGA_UPLOAD_TEX1)) { - sarea->TexState[0].texctl2 &= ~TMC_specen_enable; - sarea->TexState[1].texctl2 &= ~TMC_specen_enable; - sarea->TexState[0].texctl2 |= mmesa->hw.specen; - sarea->TexState[1].texctl2 |= mmesa->hw.specen; + sarea->tex_state[0].texctl2 &= ~TMC_specen_enable; + sarea->tex_state[1].texctl2 &= ~TMC_specen_enable; + sarea->tex_state[0].texctl2 |= mmesa->hw.specen; + sarea->tex_state[1].texctl2 |= mmesa->hw.specen; } if (mmesa->dirty & MGA_UPLOAD_PIPE) { /* mmesa->sarea->wacceptseq = mmesa->hw_primitive; */ - mmesa->sarea->WarpPipe = mmesa->vertex_format; + mmesa->sarea->warp_pipe = mmesa->vertex_format; mmesa->sarea->vertsize = mmesa->vertex_size; } |