mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
iris: lower user clip planes
This commit is contained in:
parent
80c856cbee
commit
2876dd1a37
1 changed files with 8 additions and 0 deletions
|
|
@ -540,6 +540,14 @@ iris_compile_vs(struct iris_context *ice,
|
|||
|
||||
nir_shader *nir = nir_shader_clone(mem_ctx, ish->nir);
|
||||
|
||||
if (key->nr_userclip_plane_consts) {
|
||||
nir_function_impl *impl = nir_shader_get_entrypoint(nir);
|
||||
nir_lower_clip_vs(nir, (1 << key->nr_userclip_plane_consts) - 1, true);
|
||||
nir_lower_io_to_temporaries(nir, impl, true, false);
|
||||
nir_lower_global_vars_to_local(nir);
|
||||
nir_lower_vars_to_ssa(nir);
|
||||
}
|
||||
|
||||
// XXX: alt mode
|
||||
assign_common_binding_table_offsets(devinfo, nir, prog_data, 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue