diff options
author | Luca Barbieri <[email protected]> | 2010-09-04 20:17:39 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-09-04 22:45:21 +0200 |
commit | 11d29739e114350693eb8ee36d356cfdde432191 (patch) | |
tree | 51da867326acf43fbb48f8f9aba6d8a6b7076575 /src/gallium/drivers/nvfx/nvfx_miptree.c | |
parent | f7392eb23a700ab7a131f4a0d23426996ac352a5 (diff) |
nvfx: fix the temporary copying logic and add asserts
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_miptree.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_miptree.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_miptree.c b/src/gallium/drivers/nvfx/nvfx_miptree.c index 0916aaa8289..7677fde40cb 100644 --- a/src/gallium/drivers/nvfx/nvfx_miptree.c +++ b/src/gallium/drivers/nvfx/nvfx_miptree.c @@ -214,6 +214,7 @@ nvfx_miptree_surface_del(struct pipe_surface *ps) if(!ns->temp) { + assert(!util_dirty_surface_is_dirty(&ns->base)); util_surfaces_detach(&((struct nvfx_miptree*)ps->texture)->surfaces, ps); pipe_resource_reference(&ps->texture, 0); FREE(ps); |