mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-22 20:00:10 +01:00
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:
parent
e359254a19
commit
7f25f30443
4 changed files with 6 additions and 6 deletions
|
|
@ -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_X_EN(sel->info.uses_block_id[0]) |
|
||||||
S_00B84C_TGID_Y_EN(sel->info.uses_block_id[1]) |
|
S_00B84C_TGID_Y_EN(sel->info.uses_block_id[1]) |
|
||||||
S_00B84C_TGID_Z_EN(sel->info.uses_block_id[2]) |
|
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]
|
S_00B84C_TIDIG_COMP_CNT(sel->info.uses_thread_id[2]
|
||||||
? 2
|
? 2
|
||||||
: sel->info.uses_thread_id[1] ? 1 : 0) |
|
: 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]);
|
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);
|
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. */
|
/* 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_block_id[3];
|
||||||
bool uses_variable_block_size;
|
bool uses_variable_block_size;
|
||||||
bool uses_grid_size;
|
bool uses_grid_size;
|
||||||
bool uses_subgroup_info;
|
bool uses_tg_size;
|
||||||
bool writes_position;
|
bool writes_position;
|
||||||
bool writes_psize;
|
bool writes_psize;
|
||||||
bool writes_clipvertex;
|
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_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_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_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) ||
|
info->uses_tg_size = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_SUBGROUPS) ||
|
||||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_SUBGROUP_ID) ||
|
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_LOCAL_INVOCATION_INDEX) ||
|
||||||
BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_NUM_SUBGROUPS);
|
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_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_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) ||
|
info->uses_primid = BITSET_TEST(nir->info.system_values_read, SYSTEM_VALUE_PRIMITIVE_ID) ||
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue