lavapipe: lower base_workgroup_id to zero

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26800>
This commit is contained in:
Karol Herbst 2024-04-23 18:17:42 +02:00 committed by Marge Bot
parent a62fb368d6
commit e040a08e5e
2 changed files with 6 additions and 2 deletions

View file

@ -422,7 +422,9 @@ lvp_shader_lower(struct lvp_device *pdevice, struct lvp_pipeline *pipeline, nir_
NIR_PASS_V(nir, nir_lower_system_values);
NIR_PASS_V(nir, nir_lower_is_helper_invocation);
NIR_PASS_V(nir, lower_demote);
NIR_PASS_V(nir, nir_lower_compute_system_values, NULL);
const struct nir_lower_compute_system_values_options compute_system_values = {0};
NIR_PASS_V(nir, nir_lower_compute_system_values, &compute_system_values);
NIR_PASS_V(nir, nir_remove_dead_variables,
nir_var_uniform | nir_var_image, NULL);

View file

@ -1088,7 +1088,9 @@ lvp_compile_ray_tracing_pipeline(struct lvp_pipeline *pipeline,
nir_shader_instructions_pass(b->shader, lvp_lower_ray_tracing_instr, nir_metadata_none, &compiler);
NIR_PASS(_, b->shader, nir_lower_returns);
NIR_PASS(_, b->shader, nir_lower_compute_system_values, NULL);
const struct nir_lower_compute_system_values_options compute_system_values = {0};
NIR_PASS(_, b->shader, nir_lower_compute_system_values, &compute_system_values);
NIR_PASS(_, b->shader, nir_lower_global_vars_to_local);
NIR_PASS(_, b->shader, nir_lower_vars_to_ssa);