intel/compiler: Drop variable group size lowering
This backend lowering code has been dead since the removal of i965 - nothing in the current source tree ever sets the flag. This is handled by iris_setup_uniforms() and crocus_setup_uniforms(). Variable group size does not appear to be a feature in anv. Reviewed-by: Marcin Ślusarz <marcin.slusarz@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18055>
This commit is contained in:
committed by
Marge Bot
parent
79f47249e8
commit
2cea0d6ef6
@@ -112,21 +112,11 @@ fs_visitor::nir_setup_uniforms()
|
||||
/* Add uniforms for builtins after regular NIR uniforms. */
|
||||
assert(uniforms == prog_data->nr_params);
|
||||
|
||||
uint32_t *param;
|
||||
if (nir->info.workgroup_size_variable &&
|
||||
compiler->lower_variable_group_size) {
|
||||
param = brw_stage_prog_data_add_params(prog_data, 3);
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
param[i] = (BRW_PARAM_BUILTIN_WORK_GROUP_SIZE_X + i);
|
||||
group_size[i] = fs_reg(UNIFORM, uniforms++, BRW_REGISTER_TYPE_UD);
|
||||
}
|
||||
}
|
||||
|
||||
/* Subgroup ID must be the last uniform on the list. This will make
|
||||
* easier later to split between cross thread and per thread
|
||||
* uniforms.
|
||||
*/
|
||||
param = brw_stage_prog_data_add_params(prog_data, 1);
|
||||
uint32_t *param = brw_stage_prog_data_add_params(prog_data, 1);
|
||||
*param = BRW_PARAM_BUILTIN_SUBGROUP_ID;
|
||||
subgroup_id = fs_reg(UNIFORM, uniforms++, BRW_REGISTER_TYPE_UD);
|
||||
}
|
||||
@@ -3976,16 +3966,10 @@ fs_visitor::nir_emit_cs_intrinsic(const fs_builder &bld,
|
||||
}
|
||||
|
||||
case nir_intrinsic_load_workgroup_size: {
|
||||
/* For non-variable case, this should've been lowered already. */
|
||||
assert(nir->info.workgroup_size_variable);
|
||||
|
||||
assert(compiler->lower_variable_group_size);
|
||||
assert(gl_shader_stage_is_compute(stage));
|
||||
|
||||
for (unsigned i = 0; i < 3; i++) {
|
||||
bld.MOV(retype(offset(dest, bld, i), BRW_REGISTER_TYPE_UD),
|
||||
group_size[i]);
|
||||
}
|
||||
/* Should have been lowered by brw_nir_lower_cs_intrinsics() or
|
||||
* crocus/iris_setup_uniforms() for the variable group size case.
|
||||
*/
|
||||
unreachable("Should have been lowered");
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user