st/nine: Improve logging
authorPatrick Rudolph <siro@das-labor.org>
Wed, 9 Mar 2016 14:15:46 +0000 (15:15 +0100)
committerAxel Davy <axel.davy@ens.fr>
Wed, 18 May 2016 21:37:14 +0000 (23:37 +0200)
Add missing DBG calls in dtors.

Signed-off-by: Patrick Rudolph <siro@das-labor.org>
Reviewed-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/buffer9.c
src/gallium/state_trackers/nine/query9.c
src/gallium/state_trackers/nine/resource9.c
src/gallium/state_trackers/nine/surface9.c
src/gallium/state_trackers/nine/texture9.c
src/gallium/state_trackers/nine/vertexdeclaration9.c

index 1103741f7ee9dda2764d6d2582f7b53216275833..1b431d24730168f96aa927c0b1bfdd587deb20cf 100644 (file)
@@ -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);
index 39ac831ba7770fda815fc7b7689de0d055a95e53..dd7f03d389e03cd457219542dea066704109272a 100644 (file)
@@ -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);
index d01c2225520563ed7ebe00cf249d2dbf3af4da26..ade1823dbaef8292848c74ce8045a9c229879385 100644 (file)
@@ -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);
index 79d4b926902be300dc5aab4097f1974abc904878..2606dbfcfa86abb39670bc8b217a4bb57b014c3c 100644 (file)
@@ -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);
 
index 3b88e07e9760cd17709551fa59149fe813087031..9bc8610b291e25303d35b93c1e4fadc8a89c9c44 100644 (file)
@@ -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)
index e478c102b323612f07f913171d921856e431a48e..955cdbdba03c2db80c04fa90e08edaefcd1b064a 100644 (file)
@@ -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);