Module: Mesa Branch: main Commit: a42dc4ef5e59ee98743a4c9e2e74a06fdb210a68 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a42dc4ef5e59ee98743a4c9e2e74a06fdb210a68
Author: Erik Faye-Lund <[email protected]> Date: Mon Jun 26 10:25:50 2023 +0200 tgsi: uint -> uint32_t Reviewed-by: Yonggang Luo <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002> --- src/gallium/auxiliary/tgsi/tgsi_sanity.c | 5 +++-- src/gallium/auxiliary/tgsi/tgsi_scan.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c index ccfccc0c729..0e0e3988e89 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c @@ -33,14 +33,15 @@ #include "tgsi_info.h" #include "tgsi_iterate.h" +#include <stdint.h> DEBUG_GET_ONCE_BOOL_OPTION(print_sanity, "TGSI_PRINT_SANITY", false) typedef struct { - uint file : 28; + uint32_t file : 28; /* max 2 dimensions */ - uint dimensions : 4; + uint32_t dimensions : 4; uint indices[2]; } scan_register; diff --git a/src/gallium/auxiliary/tgsi/tgsi_scan.h b/src/gallium/auxiliary/tgsi/tgsi_scan.h index 686c256f454..d52555bca13 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_scan.h +++ b/src/gallium/auxiliary/tgsi/tgsi_scan.h @@ -61,7 +61,7 @@ struct tgsi_shader_info uint8_t processor; - uint file_mask[TGSI_FILE_COUNT]; /**< bitmask of declared registers */ + uint32_t file_mask[TGSI_FILE_COUNT]; /**< bitmask of declared registers */ uint file_count[TGSI_FILE_COUNT]; /**< number of declared registers */ int file_max[TGSI_FILE_COUNT]; /**< highest index of declared registers */ int const_file_max[PIPE_MAX_CONSTANT_BUFFERS];
