diff options
author | Ben Skeggs <[email protected]> | 2009-02-20 09:32:47 +1000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2009-02-20 09:43:24 +1000 |
commit | 63a3a3762c8e1a67666d36b35fdb0ada8e4b7d08 (patch) | |
tree | d44240582f82712c446a1116afcc15d47b30ef7a /src/gallium/drivers/nv50/nv50_tex.c | |
parent | 9c9fcc83c03c8f944236a892d96305e98f0bffdd (diff) |
nv50: rework for texture_transfer changes
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_tex.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_tex.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/drivers/nv50/nv50_tex.c b/src/gallium/drivers/nv50/nv50_tex.c index 675f9b20cbc..31bf59675ec 100644 --- a/src/gallium/drivers/nv50/nv50_tex.c +++ b/src/gallium/drivers/nv50/nv50_tex.c @@ -135,7 +135,7 @@ nv50_tex_validate(struct nv50_context *nv50) { struct nouveau_grobj *tesla = nv50->screen->tesla; struct nouveau_stateobj *so; - int unit, level, image; + int unit; so = so_new(nv50->miptree_nr * 8 + 3, nv50->miptree_nr * 2); so_method(so, tesla, 0x0f00, 1); @@ -144,13 +144,6 @@ nv50_tex_validate(struct nv50_context *nv50) for (unit = 0; unit < nv50->miptree_nr; unit++) { struct nv50_miptree *mt = nv50->miptree[unit]; - for (level = 0; level <= mt->base.last_level; level++) { - for (image = 0; image < mt->image_nr; image++) { - nv50_miptree_sync(&nv50->screen->pipe, mt, - level, image); - } - } - if (nv50_tex_construct(so, mt)) { NOUVEAU_ERR("failed tex validate\n"); so_ref(NULL, &so); |