diff options
author | Corbin Simpson <[email protected]> | 2010-05-25 22:33:21 -0700 |
---|---|---|
committer | Corbin Simpson <[email protected]> | 2010-06-16 10:54:08 -0700 |
commit | a91fea65dc574cc0ba2ccec936d60366b034489a (patch) | |
tree | 52edaeae14b990f328a4a2d287029c3cb35680cc /src/gallium/drivers/r300/r300_texture.c | |
parent | 3784b0fa69491aa14bdf6f7a61c4d5de2589d234 (diff) |
r300g: Moar MSAA setup.
Need to just add the resolve, then go switch to new DRM and test.
Diffstat (limited to 'src/gallium/drivers/r300/r300_texture.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_texture.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 5d8bcff1ac1..f41c5301d90 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -802,6 +802,10 @@ static void r300_setup_miptree(struct r300_screen* screen, nblocksy = r300_texture_get_nblocksy(tex, i); layer_size = stride * nblocksy; + if (base->nr_samples) { + layer_size *= base->nr_samples; + } + if (base->target == PIPE_TEXTURE_CUBE) size = layer_size * 6; else |