diff options
author | Marcin KoĆcielnicki <[email protected]> | 2009-09-10 18:26:42 +0000 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2009-09-10 21:06:48 +0200 |
commit | 18882f4d30afcc849dca33ff93dbcd5ca45664b8 (patch) | |
tree | 1d6c58e8d53ce5398fb82cf8c0aead38bd1d6d36 /src/gallium/drivers/nv50/nv50_state_validate.c | |
parent | 36dd53a3cded9d003ec418732b7fc93c1476aa9b (diff) |
nv50: Fix tiling mode for lower mipmap levels.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_state_validate.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_state_validate.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/nv50/nv50_state_validate.c b/src/gallium/drivers/nv50/nv50_state_validate.c index 344c2cf6dde..d294356f75d 100644 --- a/src/gallium/drivers/nv50/nv50_state_validate.c +++ b/src/gallium/drivers/nv50/nv50_state_validate.c @@ -66,7 +66,8 @@ nv50_state_validate_fb(struct nv50_context *nv50) so_data(so, NV50TCL_RT_FORMAT_X8R8G8B8_UNORM); break; } - so_data(so, bo->tile_mode << 4); + so_data(so, nv50_miptree(pt)-> + level[fb->cbufs[i]->level].tile_mode << 4); so_data(so, 0x00000000); so_method(so, tesla, 0x1224, 1); @@ -110,7 +111,8 @@ nv50_state_validate_fb(struct nv50_context *nv50) so_data(so, NV50TCL_ZETA_FORMAT_S8Z24_UNORM); break; } - so_data(so, bo->tile_mode << 4); + so_data(so, nv50_miptree(pt)-> + level[fb->zsbuf->level].tile_mode << 4); so_data(so, 0x00000000); so_method(so, tesla, 0x1538, 1); |