intel: Remove a never-taken debug print path.
authorEric Anholt <eric@anholt.net>
Thu, 28 Mar 2013 22:58:25 +0000 (15:58 -0700)
committerEric Anholt <eric@anholt.net>
Sun, 31 Mar 2013 00:23:50 +0000 (17:23 -0700)
Alessandro Pignotti noted when I added this code in commit
0e723b135bfd59868c92c3ae243f1adaedaec3a5 that it's in the else block for
"if (busy)", so this debug print couldn't happen.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/intel/intel_buffer_objects.c

index ac265db4a66cf6cc1b9cc090efca308149b756bc..e270db86cf673db2c2d9107f9bb30ff3cebf18b1 100644 (file)
@@ -227,11 +227,6 @@ intel_bufferobj_subdata(struct gl_context * ctx,
         drm_intel_bo_unreference(temp_bo);
       }
    } else {
-      if (unlikely(intel->perf_debug)) {
-         if (drm_intel_bo_busy(intel_obj->buffer)) {
-            perf_debug("Stalling on the GPU in glBufferSubData().\n");
-         }
-      }
       drm_intel_bo_subdata(intel_obj->buffer, offset, size, data);
    }
 }