intel/fs: Output opt_combine_constants debug to stderr
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 2 Dec 2020 19:31:57 +0000 (11:31 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Apr 2023 21:50:06 +0000 (21:50 +0000)
It's a lot more useful to have it in the same stream with the
INTEL_DEBUG=fs output.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Tested-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22274>

src/intel/compiler/brw_fs_combine_constants.cpp

index a0ff721..32ba5a8 100644 (file)
@@ -609,17 +609,18 @@ fs_visitor::opt_combine_constants()
       for (int i = 0; i < table.len; i++) {
          struct imm *imm = &table.imm[i];
 
-         printf("0x%016" PRIx64 " - block %3d, reg %3d sub %2d, "
-                "Uses: (%2d, %2d), IP: %4d to %4d, length %4d\n",
-                (uint64_t)(imm->d & BITFIELD64_MASK(imm->size * 8)),
-                imm->block->num,
-                imm->nr,
-                imm->subreg_offset,
-                imm->must_promote,
-                imm->uses_by_coissue,
-                imm->first_use_ip,
-                imm->last_use_ip,
-                imm->last_use_ip - imm->first_use_ip);
+         fprintf(stderr,
+                 "0x%016" PRIx64 " - block %3d, reg %3d sub %2d, "
+                 "Uses: (%2d, %2d), IP: %4d to %4d, length %4d\n",
+                 (uint64_t)(imm->d & BITFIELD64_MASK(imm->size * 8)),
+                 imm->block->num,
+                 imm->nr,
+                 imm->subreg_offset,
+                 imm->must_promote,
+                 imm->uses_by_coissue,
+                 imm->first_use_ip,
+                 imm->last_use_ip,
+                 imm->last_use_ip - imm->first_use_ip);
       }
    }