mesa/src/intel
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
..
blorp blorp: Handle stencil buffer compression on blitter engine 2023-12-06 04:39:09 +00:00
ci intel/ci: run only the relevant jobs when changing the ci expectations 2023-12-07 09:59:39 +00:00
common intel: Sync xe_drm.h take 2 part 3 2023-12-06 17:35:23 +00:00
compiler intel/compiler: Verify that DO is alone in the block 2023-12-08 20:21:28 +00:00
dev intel: Sync xe_drm.h take 2 part 3 2023-12-06 17:35:23 +00:00
ds intel/ds: add trace of buffer markers 2023-11-29 01:16:22 +00:00
genxml intel/genxml/xe2: Update PIPELINE_SELECT 2023-12-07 14:16:18 +00:00
isl intel: Generate source file with utf-8 encoding from mako template 2023-12-07 12:41:07 +00:00
nullhw-layer meson: support installation tags 2023-09-11 13:00:45 +00:00
perf intel: Remove unused ALIGN macro 2023-12-07 02:30:53 +00:00
tools intel/tools: fix compilation of intel_hang_viewer on 32 bits 2023-12-08 22:53:03 +00:00
vulkan anv: Use RCS cmd buffer if blit src/dest has 3 components 2023-12-08 20:44:03 +00:00
vulkan_hasvk treewide: Avoid use align as variable, replace it with other names 2023-12-07 02:30:53 +00:00
meson.build intel: Only build perf if drivers or tools are enabled 2023-08-31 21:53:19 +00:00