zink: delete some maintenance5 psiz pruning

now that gallium is no longer adding these all over, they don't need
to be deleted

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28162>
This commit is contained in:
Mike Blumenkrantz 2024-03-13 11:35:11 -04:00 committed by Marge Bot
parent 24453579ad
commit 7deef8d7d2

View file

@ -5755,25 +5755,6 @@ zink_shader_create(struct zink_screen *screen, struct nir_shader *nir)
var->data.explicit_xfb_buffer = 0;
if (nir->xfb_info && nir->xfb_info->output_count && nir->info.outputs_written)
update_so_info(ret, nir, nir->info.outputs_written, have_psiz);
else if (have_psiz) {
bool have_fake_psiz = false;
nir_variable *psiz = NULL;
nir_foreach_shader_out_variable(var, nir) {
if (var->data.location == VARYING_SLOT_PSIZ) {
if (!var->data.explicit_location)
have_fake_psiz = true;
else
psiz = var;
}
}
/* maintenance5 allows injected psiz deletion */
if (have_fake_psiz && (psiz || screen->info.have_KHR_maintenance5)) {
psiz->data.mode = nir_var_shader_temp;
nir_fixup_deref_modes(nir);
delete_psiz_store(nir, true);
NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_shader_temp, NULL);
}
}
zink_shader_serialize_blob(nir, &ret->blob);
memcpy(&ret->info, &nir->info, sizeof(nir->info));