From a42dc4ef5e59ee98743a4c9e2e74a06fdb210a68 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 26 Jun 2023 10:25:50 +0200 Subject: [PATCH] tgsi: uint -> uint32_t Reviewed-by: Yonggang Luo Part-of: --- 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 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];