tgsi: use enum for property-name
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 26 Jun 2023 09:51:26 +0000 (11:51 +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_text.c

index e1bab86..8e9914f 100644 (file)
@@ -1724,7 +1724,7 @@ parse_property_next_shader( const char **pcur, uint *next_shader )
 static bool parse_property( struct translate_ctx *ctx )
 {
    struct tgsi_full_property prop;
-   uint property_name;
+   enum tgsi_property_name property_name;
    uint values[8];
    uint advance;
    char id[64];