diff options
author | Patrick Rudolph <[email protected]> | 2016-03-09 15:15:46 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-05-18 23:37:14 +0200 |
commit | f45b9894e50f64197f8a3708359896a870e9089d (patch) | |
tree | a7c07bcb2f16734b01b4c9f9c853cf0cb7936605 | |
parent | f3fa7e3068512dde55c3f4d7c2b599ab1d7fe67f (diff) |
st/nine: Improve logging
Add missing DBG calls in dtors.
Signed-off-by: Patrick Rudolph <[email protected]>
Reviewed-by: Axel Davy <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/nine/buffer9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/query9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/resource9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/surface9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/texture9.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/nine/vertexdeclaration9.c | 2 |
6 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/buffer9.c b/src/gallium/state_trackers/nine/buffer9.c index 1103741f7ee..1b431d24730 100644 --- a/src/gallium/state_trackers/nine/buffer9.c +++ b/src/gallium/state_trackers/nine/buffer9.c @@ -118,6 +118,8 @@ NineBuffer9_ctor( struct NineBuffer9 *This, void NineBuffer9_dtor( struct NineBuffer9 *This ) { + DBG("This=%p\n", This); + if (This->maps) { while (This->nmaps) { NineBuffer9_Unlock(This); diff --git a/src/gallium/state_trackers/nine/query9.c b/src/gallium/state_trackers/nine/query9.c index 39ac831ba77..dd7f03d389e 100644 --- a/src/gallium/state_trackers/nine/query9.c +++ b/src/gallium/state_trackers/nine/query9.c @@ -134,6 +134,8 @@ NineQuery9_dtor( struct NineQuery9 *This ) { struct pipe_context *pipe = This->base.device->pipe; + DBG("This=%p\n", This); + if (This->pq) { if (This->state == NINE_QUERY_STATE_RUNNING) pipe->end_query(pipe, This->pq); diff --git a/src/gallium/state_trackers/nine/resource9.c b/src/gallium/state_trackers/nine/resource9.c index d01c2225520..ade1823dbae 100644 --- a/src/gallium/state_trackers/nine/resource9.c +++ b/src/gallium/state_trackers/nine/resource9.c @@ -110,6 +110,8 @@ NineResource9_ctor( struct NineResource9 *This, void NineResource9_dtor( struct NineResource9 *This ) { + DBG("This=%p\n", This); + if (This->pdata) { util_hash_table_foreach(This->pdata, ht_guid_delete, NULL); util_hash_table_destroy(This->pdata); diff --git a/src/gallium/state_trackers/nine/surface9.c b/src/gallium/state_trackers/nine/surface9.c index 79d4b926902..2606dbfcfa8 100644 --- a/src/gallium/state_trackers/nine/surface9.c +++ b/src/gallium/state_trackers/nine/surface9.c @@ -175,6 +175,8 @@ NineSurface9_ctor( struct NineSurface9 *This, void NineSurface9_dtor( struct NineSurface9 *This ) { + DBG("This=%p\n", This); + if (This->transfer) NineSurface9_UnlockRect(This); diff --git a/src/gallium/state_trackers/nine/texture9.c b/src/gallium/state_trackers/nine/texture9.c index 3b88e07e976..9bc8610b291 100644 --- a/src/gallium/state_trackers/nine/texture9.c +++ b/src/gallium/state_trackers/nine/texture9.c @@ -226,6 +226,8 @@ NineTexture9_dtor( struct NineTexture9 *This ) { unsigned l; + DBG("This=%p\n", This); + if (This->surfaces) { /* The surfaces should have 0 references and be unbound now. */ for (l = 0; l <= This->base.base.info.last_level; ++l) diff --git a/src/gallium/state_trackers/nine/vertexdeclaration9.c b/src/gallium/state_trackers/nine/vertexdeclaration9.c index e478c102b32..955cdbdba03 100644 --- a/src/gallium/state_trackers/nine/vertexdeclaration9.c +++ b/src/gallium/state_trackers/nine/vertexdeclaration9.c @@ -226,6 +226,8 @@ NineVertexDeclaration9_ctor( struct NineVertexDeclaration9 *This, void NineVertexDeclaration9_dtor( struct NineVertexDeclaration9 *This ) { + DBG("This=%p\n", This); + FREE(This->decls); FREE(This->elems); FREE(This->usage_map); |