ac: correct ac_shader_args types, remove sgpr_count
authorMarek Olšák <marek.olsak@amd.com>
Fri, 4 Dec 2020 16:17:58 +0000 (11:17 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 20:13:24 +0000 (20:13 +0000)
sgpr_count is unused. The size of the others is too small.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7939>

src/amd/common/ac_shader_args.h

index 0a4af17..8027437 100644 (file)
@@ -64,9 +64,8 @@ struct ac_shader_args {
    } args[AC_MAX_ARGS];
 
    uint16_t arg_count;
-   uint8_t sgpr_count;
-   uint8_t num_sgprs_used;
-   uint8_t num_vgprs_used;
+   uint16_t num_sgprs_used;
+   uint16_t num_vgprs_used;
 
    struct ac_arg base_vertex;
    struct ac_arg start_instance;