tgsi: uint -> uint32_t
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Jun 2023 08:25:50 +0000 (10:25 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 6 Jul 2023 12:03:43 +0000 (12:03 +0000)
Reviewed-by: Yonggang Luo <luoyonggang@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24002>

src/gallium/auxiliary/tgsi/tgsi_sanity.c
src/gallium/auxiliary/tgsi/tgsi_scan.h

index ccfccc0..0e0e398 100644 (file)
 #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;
 
index 686c256..d52555b 100644 (file)
@@ -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];