summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2022-09-25 04:40:47 +0800
committerMarge Bot <emma+marge@anholt.net>2022-09-25 07:44:06 +0000
commit26d1b0ca022dbd28322b0ce535658df3123f0057 (patch)
tree1a0b84d97d84684ac7169ccbdab573d65110fae5
parente0b7430eae7d49dc98bac05fe46b511e1a9c7cfd (diff)
r600/sfn: Fixes 'numeric_limits' is not a member of 'std' error in sfn/sfn_instr.cpp
The error message is: ../src/gallium/drivers/r600/sfn/sfn_instr.cpp:46:20: error: 'numeric_limits' is not a member of 'std' 46 | m_block_id(std::numeric_limits<int>::max()), | ^~~~~~~~~~~~~~ ../src/gallium/drivers/r600/sfn/sfn_instr.cpp:46:35: error: expected primary-expression before 'int' 46 | m_block_id(std::numeric_limits<int>::max()), Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7337 Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18801>
-rw-r--r--src/gallium/drivers/r600/sfn/sfn_instr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/sfn/sfn_instr.cpp b/src/gallium/drivers/r600/sfn/sfn_instr.cpp
index cbc3b3afaa1..221f84d0f2c 100644
--- a/src/gallium/drivers/r600/sfn/sfn_instr.cpp
+++ b/src/gallium/drivers/r600/sfn/sfn_instr.cpp
@@ -33,6 +33,7 @@
#include "sfn_instr_controlflow.h"
#include <iostream>
+#include <limits>
#include <sstream>
#include <numeric>