mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 17:20:10 +01:00
d3d12: Gather info less and before the final compilation steps
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28535>
This commit is contained in:
parent
c1e7d0598d
commit
dedbd6eea3
1 changed files with 3 additions and 16 deletions
|
|
@ -1195,18 +1195,11 @@ select_shader_variant(struct d3d12_selection_context *sel_ctx, d3d12_shader_sele
|
|||
key.gs.point_size_per_vertex,
|
||||
key.gs.sprite_coord_enable,
|
||||
key.next_varying_inputs);
|
||||
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(new_nir_variant);
|
||||
nir_shader_gather_info(new_nir_variant, impl);
|
||||
}
|
||||
|
||||
if (key.gs.primitive_id) {
|
||||
if (key.gs.primitive_id)
|
||||
NIR_PASS_V(new_nir_variant, d3d12_lower_primitive_id);
|
||||
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(new_nir_variant);
|
||||
nir_shader_gather_info(new_nir_variant, impl);
|
||||
}
|
||||
|
||||
if (key.gs.triangle_strip)
|
||||
NIR_PASS_V(new_nir_variant, d3d12_lower_triangle_strip);
|
||||
}
|
||||
|
|
@ -1215,18 +1208,11 @@ select_shader_variant(struct d3d12_selection_context *sel_ctx, d3d12_shader_sele
|
|||
if (key.fs.polygon_stipple) {
|
||||
NIR_PASS_V(new_nir_variant, nir_lower_pstipple_fs,
|
||||
&pstipple_binding, 0, false, nir_type_bool1);
|
||||
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(new_nir_variant);
|
||||
nir_shader_gather_info(new_nir_variant, impl);
|
||||
}
|
||||
|
||||
if (key.fs.remap_front_facing) {
|
||||
if (key.fs.remap_front_facing)
|
||||
dxil_nir_forward_front_face(new_nir_variant);
|
||||
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(new_nir_variant);
|
||||
nir_shader_gather_info(new_nir_variant, impl);
|
||||
}
|
||||
|
||||
if (key.fs.missing_dual_src_outputs) {
|
||||
NIR_PASS_V(new_nir_variant, d3d12_add_missing_dual_src_target,
|
||||
key.fs.missing_dual_src_outputs);
|
||||
|
|
@ -1338,6 +1324,7 @@ select_shader_variant(struct d3d12_selection_context *sel_ctx, d3d12_shader_sele
|
|||
key.next_varying_inputs);
|
||||
}
|
||||
|
||||
nir_shader_gather_info(new_nir_variant, nir_shader_get_entrypoint(new_nir_variant));
|
||||
d3d12_shader *new_variant = compile_nir(ctx, sel, &key, new_nir_variant);
|
||||
assert(new_variant);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue