aco: pass sw_stage when setup_isel_context
We are going to add more shader parts. Reviewed-by: Rhys Perry <pendingchaos02@gmail.com> Signed-off-by: Qiang Yu <yuq825@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24712>
This commit is contained in:
@@ -649,9 +649,8 @@ isel_context
|
||||
setup_isel_context(Program* program, unsigned shader_count, struct nir_shader* const* shaders,
|
||||
ac_shader_config* config, const struct aco_compiler_options* options,
|
||||
const struct aco_shader_info* info, const struct ac_shader_args* args,
|
||||
bool is_ps_epilog, bool is_tcs_epilog)
|
||||
SWStage sw_stage)
|
||||
{
|
||||
SWStage sw_stage = SWStage::None;
|
||||
for (unsigned i = 0; i < shader_count; i++) {
|
||||
switch (shaders[i]->info.stage) {
|
||||
case MESA_SHADER_VERTEX: sw_stage = sw_stage | SWStage::VS; break;
|
||||
@@ -673,16 +672,6 @@ setup_isel_context(Program* program, unsigned shader_count, struct nir_shader* c
|
||||
}
|
||||
}
|
||||
|
||||
if (is_ps_epilog) {
|
||||
assert(shader_count == 0 && !shaders);
|
||||
sw_stage = SWStage::FS;
|
||||
}
|
||||
|
||||
if (is_tcs_epilog) {
|
||||
assert(shader_count == 0 && !shaders);
|
||||
sw_stage = SWStage::TCS;
|
||||
}
|
||||
|
||||
init_program(program, Stage{info->hw_stage, sw_stage}, info, options->gfx_level, options->family,
|
||||
options->wgp_mode, config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user