r300g: always set the pitch of the first miplevel in the tiling flags

This further reduces the number of DRM calls and flushes.
This commit is contained in:
Marek Olšák 2010-05-02 13:27:57 +02:00
parent 82027b2027
commit 9d33605673
1 changed files with 2 additions and 2 deletions

View File

@ -551,7 +551,7 @@ static void r300_fb_set_tiling_flags(struct r300_context *r300,
level = new_state->cbufs[i]->level;
r300->rws->buffer_set_tiling(r300->rws, tex->buffer,
tex->pitch[level],
tex->pitch[0],
tex->microtile,
tex->mip_macrotile[level]);
}
@ -560,7 +560,7 @@ static void r300_fb_set_tiling_flags(struct r300_context *r300,
level = new_state->zsbuf->level;
r300->rws->buffer_set_tiling(r300->rws, tex->buffer,
tex->pitch[level],
tex->pitch[0],
tex->microtile,
tex->mip_macrotile[level]);
}