iris: print second batch size separately
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Jun 2018 16:57:36 +0000 (09:57 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
src/gallium/drivers/iris/iris_batch.c

index 7e90d7bb1628c479e4688a7e1d52f406666323dc..9ed447d42e97df036cd72c31879817b703c1823a 100644 (file)
@@ -433,12 +433,16 @@ _iris_batch_flush_fence(struct iris_batch *batch,
    if (unlikely(INTEL_DEBUG & (DEBUG_BATCH | DEBUG_SUBMIT))) {
       int bytes_for_commands = batch_bytes_used(batch);
       int bytes_for_binder = batch->binder.insert_point;
-      if (batch->bo != batch->exec_bos[0])
+      int second_bytes = 0;
+      if (batch->bo != batch->exec_bos[0]) {
+         second_bytes = bytes_for_commands;
          bytes_for_commands += batch->primary_batch_size;
-      fprintf(stderr, "%19s:%-3d: Batchbuffer flush with %5db (%0.1f%%) "
+      }
+      fprintf(stderr, "%19s:%-3d: Batchbuffer flush with %5d+%5db (%0.1f%%) "
               "(cmds), %5db (%0.1f%%) (binder), %4d BOs (%0.1fMb aperture)\n",
               file, line,
-              bytes_for_commands, 100.0f * bytes_for_commands / BATCH_SZ,
+              batch->primary_batch_size, second_bytes,
+              100.0f * bytes_for_commands / BATCH_SZ,
               bytes_for_binder, 100.0f * bytes_for_binder / IRIS_BINDER_SIZE,
               batch->exec_count,
               (float) batch->aperture_space / (1024 * 1024));