mesa/src/intel/tools
Paulo Zanoni af65af8267 intel/tools: fix compilation of intel_hang_viewer on 32 bits
Because gcc was complaining:

../../src/intel/tools/intel_hang_viewer.cpp: In function ‘void display_hang_stats()’:
../../src/intel/tools/intel_hang_viewer.cpp:365:31: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<hang_bo>::size_type’ {aka ‘unsigned int’} [-Werror=format=]
  365 |    ImGui::Text("BOs:        %lu", context.bos.size());
      |                             ~~^   ~~~~~~~~~~~~~~~~~~
      |                               |                   |
      |                               long unsigned int   std::vector<hang_bo>::size_type {aka unsigned int}
      |                             %u
../../src/intel/tools/intel_hang_viewer.cpp:366:31: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<hang_exec>::size_type’ {aka ‘unsigned int’} [-Werror=format=]
  366 |    ImGui::Text("Execs       %lu", context.execs.size());
      |                             ~~^   ~~~~~~~~~~~~~~~~~~~~
      |                               |                     |
      |                               long unsigned int     std::vector<hang_exec>::size_type {aka unsigned int}
      |                             %u
../../src/intel/tools/intel_hang_viewer.cpp:367:31: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘std::vector<hang_map>::size_type’ {aka ‘unsigned int’} [-Werror=format=]
  367 |    ImGui::Text("Maps:       %lu", context.maps.size());
      |                             ~~^   ~~~~~~~~~~~~~~~~~~~
      |                               |                    |
      |                               long unsigned int    std::vector<hang_map>::size_type {aka unsigned int}
      |                             %u
cc1plus: some warnings being treated as errors

I'm not sure if STL's size_type is defined by the spec to be anything
specific, but for the platforms we care about it seems to be size_t,
so change it to %z.

Fixes: 33fd93f3b1 ("intel/tools: hang viewer/editor")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26581>
2023-12-08 22:53:03 +00:00
..
imgui treewide: Replace the usage of TRUE/FALSE with true/false 2023-06-27 18:18:28 +08:00
tests
aub_mem.c
aub_mem.h
aub_read.c intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aub_read.h intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aub_write.c anv,hasvk: migrate align32 to the right functions from util 2023-01-06 17:22:16 +00:00
aub_write.h intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aubinator.c intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aubinator_error_decode.c intel/error_decode: map i915 gfx12.5 register names to our names 2023-12-04 14:51:29 +00:00
aubinator_viewer.cpp intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aubinator_viewer.h intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aubinator_viewer_decoder.cpp intel: Convert i915 engine type to intel in tools/ common/ and ds/ 2022-10-15 20:04:51 +00:00
aubinator_viewer_urb.h
error2aub.c intel/tools/error2aub: Fix potential out of bounds read 2023-06-02 23:21:05 +00:00
error2hangdump.c intel/tools: 32bit compile fixes 2023-12-05 17:45:18 +00:00
gfx8_context.h
gfx10_context.h
i965_asm.c intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
i965_asm.h
i965_disasm.c intel/compiler: Introduce a new brw_isa_info structure 2022-06-30 23:46:35 +00:00
i965_gram.y
i965_lex.l
intel_aub.h
intel_context.h intel/tools: add macros for gfx12+ variant of VCSUNIT0 2022-05-24 08:03:45 +00:00
intel_dump_gpu.c intel: Fix stack overflow in intel_dump_gpu 2023-06-06 11:17:06 +00:00
intel_dump_gpu.in intel/tools: Use 'env bash' to find bash executable 2023-08-03 01:56:40 -07:00
intel_hang_replay.c intel/tools: 32bit compile fixes 2023-12-05 17:45:18 +00:00
intel_hang_viewer.cpp intel/tools: fix compilation of intel_hang_viewer on 32 bits 2023-12-08 22:53:03 +00:00
intel_noop_drm_shim.c intel_noop_drm_shim: add ability to specify device id 2023-01-05 08:37:01 +00:00
intel_sanitize_gpu.c intel/common: Move intel_clflush.h to intel_mem.h/intel_mem.c 2023-09-06 01:39:53 +00:00
intel_sanitize_gpu.in intel/tools: Use 'env bash' to find bash executable 2023-08-03 01:56:40 -07:00
intel_stub_gpu.in intel/tools: Use 'env bash' to find bash executable 2023-08-03 01:56:40 -07:00
meson.build intel/hang_replay: fix compile race with generated files 2023-12-05 06:09:52 +00:00