intel: define type for std::max in eu stall viewer

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41550>
This commit is contained in:
Omar Rashwan 2026-05-13 11:16:44 -07:00 committed by Marge Bot
parent da047e32a5
commit 24669f2bbb

View file

@ -172,7 +172,7 @@ public:
float inst_hotness =
(double) std::get<3>(inst).types[stall_type_] /
(double) std::max(max_hits_.types[stall_type_], 1ull);
(double) std::max<uint64_t>(max_hits_.types[stall_type_], 1ull);
ImU32 row_bg_color = ImGui::GetColorU32(ImVec4(inst_hotness, 0.0f, 0.0f, 0.5f));
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, row_bg_color);