Mesa (main): ac/debug: fix color printing PKT3 when count in header is too low

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 8 09:51:23 UTC 2021


Module: Mesa
Branch: main
Commit: 9f7e63e12a1b1aa9089629a25e05807cf068ab82
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f7e63e12a1b1aa9089629a25e05807cf068ab82

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Jun  7 07:56:19 2021 +0200

ac/debug: fix color printing PKT3 when count in header is too low

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11211>

---

 src/amd/common/ac_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/common/ac_debug.c b/src/amd/common/ac_debug.c
index f0a5fdfd952..6cd04b0d9e4 100644
--- a/src/amd/common/ac_debug.c
+++ b/src/amd/common/ac_debug.c
@@ -488,7 +488,7 @@ static void ac_parse_packet3(FILE *f, uint32_t header, struct ac_ib_parser *ib,
       ac_ib_get(ib);
 
    if (ib->cur_dw > first_dw + count + 1)
-      fprintf(f, COLOR_RED "\n!!!!! count in header too low !!!!!" COLOR_RESET "\n");
+      fprintf(f, COLOR_RED " !!!!! count in header too low !!!!!" COLOR_RESET "\n");
 }
 
 /**



More information about the mesa-commit mailing list