radeonsi: rename uses_subgroup_info to uses_tg_size
that's the name of the SGPR Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24759>
This commit is contained in:
@@ -193,7 +193,7 @@ static void si_create_compute_state_async(void *job, void *gdata, int thread_ind
|
||||
S_00B84C_TGID_X_EN(sel->info.uses_block_id[0]) |
|
||||
S_00B84C_TGID_Y_EN(sel->info.uses_block_id[1]) |
|
||||
S_00B84C_TGID_Z_EN(sel->info.uses_block_id[2]) |
|
||||
S_00B84C_TG_SIZE_EN(sel->info.uses_subgroup_info) |
|
||||
S_00B84C_TG_SIZE_EN(sel->info.uses_tg_size) |
|
||||
S_00B84C_TIDIG_COMP_CNT(sel->info.uses_thread_id[2]
|
||||
? 2
|
||||
: sel->info.uses_thread_id[1] ? 1 : 0) |
|
||||
|
@@ -734,7 +734,7 @@ void si_init_shader_args(struct si_shader *shader, struct si_shader_args *args)
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.workgroup_ids[i]);
|
||||
}
|
||||
}
|
||||
if (shader->selector->info.uses_subgroup_info)
|
||||
if (shader->selector->info.uses_tg_size)
|
||||
ac_add_arg(&args->ac, AC_ARG_SGPR, 1, AC_ARG_INT, &args->ac.tg_size);
|
||||
|
||||
/* GFX11 set FLAT_SCRATCH directly instead of using this arg. */
|
||||
|
@@ -490,7 +490,7 @@ struct si_shader_info {
|
||||
bool uses_block_id[3];
|
||||
bool uses_variable_block_size;
|
||||
bool uses_grid_size;
|
||||
bool uses_subgroup_info;
|
||||
bool uses_tg_size;
|
||||
bool writes_position;
|
||||
bool writes_psize;
|
||||
bool writes_clipvertex;
|
||||
|
@@ -627,9 +627,9 @@ void si_nir_scan_shader(struct si_screen *sscreen, const struct nir_shader *nir,
|
||||
info->uses_base_instance = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_BASE_INSTANCE);
|
||||
info->uses_invocationid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_INVOCATION_ID);
|
||||
info->uses_grid_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_WORKGROUPS);
|
||||
info->uses_subgroup_info = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_LOCAL_INVOCATION_INDEX) ||
|
||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SUBGROUP_ID) ||
|
||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_SUBGROUPS);
|
||||
info->uses_tg_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_SUBGROUPS) ||
|
||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_LOCAL_INVOCATION_INDEX) ||
|
||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SUBGROUP_ID);
|
||||
info->uses_variable_block_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_WORKGROUP_SIZE);
|
||||
info->uses_drawid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_DRAW_ID);
|
||||
info->uses_primid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_PRIMITIVE_ID) ||
|
||||
|
Reference in New Issue
Block a user