r600/sfn: Fix usage of std::string constructor

Fixes: f718ac6268 (r600/sfn: Add a basic nir shader backend)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26415>
(cherry picked from commit ac4b8aab21)
This commit is contained in:
Gert Wollny
2023-11-30 10:53:05 +01:00
committed by Eric Engestrom
parent b4425db9d9
commit beeb3af6f8
2 changed files with 4 additions and 3 deletions

View File

@@ -984,7 +984,7 @@
"description": "r600/sfn: Fix usage of std::string constructor",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "f718ac62688b555a933c7112f656944288d04edb",
"notes": null

View File

@@ -125,12 +125,13 @@ SfnTrace::SfnTrace(SfnLog::LogFlag flag, const char *msg):
m_flag(flag),
m_msg(msg)
{
sfn_log << m_flag << std::string(" ", 2 * m_indention++) << "BEGIN: " << m_msg << "\n";
sfn_log << m_flag << std::string( 2 * m_indention++, ' ') << "BEGIN: " << m_msg << "\n";
}
SfnTrace::~SfnTrace()
{
sfn_log << m_flag << std::string(" ", 2 * m_indention--) << "END: " << m_msg << "\n";
assert(m_indention > 0);
sfn_log << m_flag << std::string( 2 * m_indention--, ' ') << "END: " << m_msg << "\n";
}
int SfnTrace::m_indention = 0;