ac: use bigger storage for ac_arg::arg_index / ac_shader_args::arg_count

AC_MAX_ARGS is now 384 so uint8_t isn't enough.

Fixes: 6f13034265 ("ac/llvm: prepare for passing VS->TCS IO via VGPRs")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7750>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2020-11-24 11:13:48 +01:00
parent 0b3bd7c516
commit e5ff2a357e

View file

@ -47,7 +47,7 @@ enum ac_arg_type
};
struct ac_arg {
uint8_t arg_index;
uint16_t arg_index;
bool used;
};
@ -63,7 +63,7 @@ struct ac_shader_args {
bool skip;
} args[AC_MAX_ARGS];
uint8_t arg_count;
uint16_t arg_count;
uint8_t sgpr_count;
uint8_t num_sgprs_used;
uint8_t num_vgprs_used;