Mesa (master): r600/sfn: use modern c++ in printing LDS read instruction
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue May 26 06:30:48 UTC 2020
Module: Mesa
Branch: master
Commit: 12381a04108332d56b46dccd9145cb6e6fa5534e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=12381a04108332d56b46dccd9145cb6e6fa5534e
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Sat May 23 18:04:35 2020 +0200
r600/sfn: use modern c++ in printing LDS read instruction
Closes #3021
Signed-off-by: Gert Wollny <gert.wollny at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5187>
---
src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp b/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp
index b58b6156725..570f8f2a93e 100644
--- a/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_instruction_lds.cpp
@@ -5,11 +5,11 @@ namespace r600 {
void LDSReadInstruction::do_print(std::ostream& os) const
{
os << "LDS Read [";
- for (unsigned i = 0; i < m_address.size(); ++i)
- os << *m_dest_value[i] << " ";
+ for (auto& v : m_dest_value)
+ os << *v << " ";
os << "], ";
- for (unsigned i = 0; i < m_address.size(); ++i)
- os << *m_address[i] << " ";
+ for (auto& a : m_address)
+ os << *a << " ";
}
LDSReadInstruction::LDSReadInstruction(std::vector<PValue>& address, std::vector<PValue>& value):
More information about the mesa-commit
mailing list