diff options
author | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-01-26 18:05:03 +0000 |
---|---|---|
committer | Roland Scheidegger <rscheidegger@gmx.ch> | 2005-01-26 18:05:03 +0000 |
commit | a205137423e42010a025c70b05af98a6c0564f28 (patch) | |
tree | 5975295bb38de57571606110f4348a28a87125c5 /src/mesa/drivers/dri/r200/r200_state_init.c | |
parent | 7104ce0a0e8f25bf097ad695d007b1a4b3e5d051 (diff) |
(Stephane Marchesin, me) Add support for color (framebuffer) tiling to the radeon and r200 driver
Diffstat (limited to 'src/mesa/drivers/dri/r200/r200_state_init.c')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_state_init.c | 4 |
1 files changed, 4 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 5d36a6823a..cdb1f4d0a0 100644 --- a/src/mesa/drivers/dri/r200/r200_state_init.c +++ b/src/mesa/drivers/dri/r200/r200_state_init.c @@ -499,6 +499,10 @@ void r200InitState( r200ContextPtr rmesa ) rmesa->hw.ctx.cmd[CTX_RB3D_COLORPITCH] = ((rmesa->state.color.drawPitch & R200_COLORPITCH_MASK) | R200_COLOR_ENDIAN_NO_SWAP); + /* (fixed size) sarea is initialized to zero afaics so can omit version check. Phew! */ + if (rmesa->sarea->tiling_enabled) { + rmesa->hw.ctx.cmd[CTX_RB3D_COLORPITCH] |= R200_COLOR_TILE_ENABLE; + } rmesa->hw.set.cmd[SET_SE_CNTL] = (R200_FFACE_CULL_CCW | R200_BFACE_SOLID | |