diff options
author | Matt Turner <[email protected]> | 2015-06-10 13:31:06 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2015-09-25 14:08:31 -0700 |
commit | d4b0e0b717b698682700bf1cd9d448043a57701d (patch) | |
tree | 2bd36773654cd3ff676ee7e8378b9d45308b3768 /src/mesa/main | |
parent | c8dc04d4c00ed45bfe5f7acb34b0d2f6ab8b7f8d (diff) |
mesa: Remove debugging code from _mesa_reference_*.
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/arrayobj.c | 8 | ||||
-rw-r--r-- | src/mesa/main/bufferobj.c | 17 | ||||
-rw-r--r-- | src/mesa/main/renderbuffer.c | 2 | ||||
-rw-r--r-- | src/mesa/main/samplerobj.c | 8 | ||||
-rw-r--r-- | src/mesa/main/shaderobj.c | 12 |
5 files changed, 0 insertions, 47 deletions
diff --git a/src/mesa/main/arrayobj.c b/src/mesa/main/arrayobj.c index 7c4004043de..28851434133 100644 --- a/src/mesa/main/arrayobj.c +++ b/src/mesa/main/arrayobj.c @@ -200,10 +200,6 @@ _mesa_reference_vao_(struct gl_context *ctx, mtx_lock(&oldObj->Mutex); assert(oldObj->RefCount > 0); oldObj->RefCount--; -#if 0 - printf("ArrayObj %p %d DECR to %d\n", - (void *) oldObj, oldObj->Name, oldObj->RefCount); -#endif deleteFlag = (oldObj->RefCount == 0); mtx_unlock(&oldObj->Mutex); @@ -227,10 +223,6 @@ _mesa_reference_vao_(struct gl_context *ctx, } else { vao->RefCount++; -#if 0 - printf("ArrayObj %p %d INCR to %d\n", - (void *) vao, vao->Name, vao->RefCount); -#endif *ptr = vao; } mtx_unlock(&vao->Mutex); diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 20963bda8f2..f985982c801 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -450,23 +450,10 @@ _mesa_reference_buffer_object_(struct gl_context *ctx, mtx_lock(&oldObj->Mutex); assert(oldObj->RefCount > 0); oldObj->RefCount--; -#if 0 - printf("BufferObj %p %d DECR to %d\n", - (void *) oldObj, oldObj->Name, oldObj->RefCount); -#endif deleteFlag = (oldObj->RefCount == 0); mtx_unlock(&oldObj->Mutex); if (deleteFlag) { - - /* some sanity checking: don't delete a buffer still in use */ -#if 0 - /* unfortunately, these tests are invalid during context tear-down */ - assert(ctx->Array.ArrayBufferObj != bufObj); - assert(ctx->Array.VAO->IndexBufferObj != bufObj); - assert(ctx->Array.VAO->Vertex.BufferObj != bufObj); -#endif - assert(ctx->Driver.DeleteBuffer); ctx->Driver.DeleteBuffer(ctx, oldObj); } @@ -486,10 +473,6 @@ _mesa_reference_buffer_object_(struct gl_context *ctx, } else { bufObj->RefCount++; -#if 0 - printf("BufferObj %p %d INCR to %d\n", - (void *) bufObj, bufObj->Name, bufObj->RefCount); -#endif *ptr = bufObj; } mtx_unlock(&bufObj->Mutex); diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index e9d129a1dbb..b0d4c8cca26 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -174,7 +174,6 @@ _mesa_reference_renderbuffer_(struct gl_renderbuffer **ptr, mtx_lock(&oldRb->Mutex); assert(oldRb->RefCount > 0); oldRb->RefCount--; - /*printf("RB DECR %p (%d) to %d\n", (void*) oldRb, oldRb->Name, oldRb->RefCount);*/ deleteFlag = (oldRb->RefCount == 0); mtx_unlock(&oldRb->Mutex); @@ -191,7 +190,6 @@ _mesa_reference_renderbuffer_(struct gl_renderbuffer **ptr, /* reference new renderbuffer */ mtx_lock(&rb->Mutex); rb->RefCount++; - /*printf("RB INCR %p (%d) to %d\n", (void*) rb, rb->Name, rb->RefCount);*/ mtx_unlock(&rb->Mutex); *ptr = rb; } diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 32180fb1ba2..241b5cb31fd 100644 --- a/src/mesa/main/samplerobj.c +++ b/src/mesa/main/samplerobj.c @@ -91,10 +91,6 @@ _mesa_reference_sampler_object_(struct gl_context *ctx, /*mtx_lock(&oldSamp->Mutex);*/ assert(oldSamp->RefCount > 0); oldSamp->RefCount--; -#if 0 - printf("SamplerObj %p %d DECR to %d\n", - (void *) oldSamp, oldSamp->Name, oldSamp->RefCount); -#endif deleteFlag = (oldSamp->RefCount == 0); /*mtx_unlock(&oldSamp->Mutex);*/ @@ -118,10 +114,6 @@ _mesa_reference_sampler_object_(struct gl_context *ctx, } else { samp->RefCount++; -#if 0 - printf("SamplerObj %p %d INCR to %d\n", - (void *) samp, samp->Name, samp->RefCount); -#endif *ptr = samp; } /*mtx_unlock(&samp->Mutex);*/ diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index 110a18e1e2c..71d4ed69285 100644 --- a/src/mesa/main/shaderobj.c +++ b/src/mesa/main/shaderobj.c @@ -69,8 +69,6 @@ _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr, assert(old->RefCount > 0); old->RefCount--; - /*printf("SHADER DECR %p (%d) to %d\n", - (void*) old, old->Name, old->RefCount);*/ deleteFlag = (old->RefCount == 0); if (deleteFlag) { @@ -86,8 +84,6 @@ _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr, if (sh) { /* reference new */ sh->RefCount++; - /*printf("SHADER INCR %p (%d) to %d\n", - (void*) sh, sh->Name, sh->RefCount);*/ *ptr = sh; } } @@ -209,10 +205,6 @@ _mesa_reference_shader_program_(struct gl_context *ctx, assert(old->RefCount > 0); old->RefCount--; -#if 0 - printf("ShaderProgram %p ID=%u RefCount-- to %d\n", - (void *) old, old->Name, old->RefCount); -#endif deleteFlag = (old->RefCount == 0); if (deleteFlag) { @@ -227,10 +219,6 @@ _mesa_reference_shader_program_(struct gl_context *ctx, if (shProg) { shProg->RefCount++; -#if 0 - printf("ShaderProgram %p ID=%u RefCount++ to %d\n", - (void *) shProg, shProg->Name, shProg->RefCount); -#endif *ptr = shProg; } } |