diff options
author | Dave Airlie <[email protected]> | 2009-02-27 14:03:30 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2009-02-27 14:04:03 +1000 |
commit | 0dba8883e3f6d51bf3a2918ac21770326da2664a (patch) | |
tree | c65981c1ced3a9f9aaf962405bad6a5f0fcabb50 /src/mesa/drivers/dri/r300/r300_texstate.c | |
parent | 26c1b0af024e4847ce1000ee471ab5b5bdb18a1b (diff) |
r300: make ste text buffer work with > 2048 on r500
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_texstate.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_texstate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_texstate.c b/src/mesa/drivers/dri/r300/r300_texstate.c index f5b41180f79..8a90069a6d0 100644 --- a/src/mesa/drivers/dri/r300/r300_texstate.c +++ b/src/mesa/drivers/dri/r300/r300_texstate.c @@ -484,6 +484,13 @@ void r300SetTexBuffer(__DRIcontext *pDRICtx, GLint target, __DRIdrawable *dPriv) ((rb->height - 1) << R300_TX_HEIGHTMASK_SHIFT); t->pp_txsize |= R300_TX_SIZE_TXPITCH_EN; t->pp_txpitch |= pitch_val; + + if (rmesa->radeon.radeonScreen->chip_family >= CHIP_FAMILY_RV515) { + if (rb->width > 2048) + t->pp_txpitch |= R500_TXWIDTH_BIT11; + if (rb->height > 2048) + t->pp_txpitch |= R500_TXHEIGHT_BIT11; + } t->validated = GL_TRUE; _mesa_unlock_texture(radeon->glCtx, texObj); return; |