Mesa (master): r600: add missing <array> include

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 28 11:50:26 UTC 2020


Module: Mesa
Branch: master
Commit: cf69b9635a7fca9b865fe673073f1baff83bf759
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf69b9635a7fca9b865fe673073f1baff83bf759

Author: Greg V <greg at unrelenting.technology>
Date:   Wed Feb 26 23:12:12 2020 +0300

r600: add missing <array> include

Fixes error with clang/libc++:

../src/gallium/drivers/r600/sfn/sfn_emitaluinstruction.h:69:88: error: implicit instantiation of undefined template 'std::__1::array<unsigned char, 3>'
   bool emit_alu_op3(const nir_alu_instr& instr, EAluOp opcode, std::array<uint8_t, 3> reorder={0,1,2});

Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3967>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3967>

---

 src/gallium/drivers/r600/sfn/sfn_value_gpr.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/r600/sfn/sfn_value_gpr.h b/src/gallium/drivers/r600/sfn/sfn_value_gpr.h
index eee12c46c6a..f2c51f3c436 100644
--- a/src/gallium/drivers/r600/sfn/sfn_value_gpr.h
+++ b/src/gallium/drivers/r600/sfn/sfn_value_gpr.h
@@ -29,6 +29,7 @@
 
 #include "sfn_value.h"
 #include <vector>
+#include <array>
 
 namespace r600 {
 



More information about the mesa-commit mailing list