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

Author: Vinson Lee <[email protected]>
Date:   Sat Mar  4 13:26:20 2023 -0800

pps: Fix build errors.

In file included from ../src/tool/pps/pps_device.cc:10:
../src/tool/pps/pps_device.h:23:11: error: ‘uint32_t’ does not name a type
   23 |    static uint32_t device_count();
      |           ^~~~~~~~

In file included from ../src/tool/pps/pps_counter.cc:10:
../src/tool/pps/pps_counter.h:22:4: error: ‘uint32_t’ does not name a type
   22 |    uint32_t id;
      |    ^~~~~~~~

Fixes: 1cc72b2aef8 ("pps: Gfx-pps v0.3.0")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8186
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Reviewed-by: David Heidelberg <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21714>

---

 src/tool/pps/pps_counter.h | 1 +
 src/tool/pps/pps_device.h  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/tool/pps/pps_counter.h b/src/tool/pps/pps_counter.h
index 13cf67b547b..5a288b50c7a 100644
--- a/src/tool/pps/pps_counter.h
+++ b/src/tool/pps/pps_counter.h
@@ -9,6 +9,7 @@
 
 #pragma once
 
+#include <cstdint>
 #include <functional>
 #include <string>
 #include <variant>
diff --git a/src/tool/pps/pps_device.h b/src/tool/pps/pps_device.h
index 6623059b9d2..9680b052f14 100644
--- a/src/tool/pps/pps_device.h
+++ b/src/tool/pps/pps_device.h
@@ -9,6 +9,7 @@
 
 #pragma once
 
+#include <cstdint>
 #include <optional>
 #include <string>
 #include <vector>

Reply via email to