mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
lavapipe: run nir_fold_16bit_sampler_conversions
big cleanup for all shaders coming from zink Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15852>
This commit is contained in:
parent
27a43b531b
commit
b043d4c4c6
1 changed files with 5 additions and 0 deletions
|
|
@ -949,6 +949,11 @@ lvp_shader_compile_to_ir(struct lvp_pipeline *pipeline,
|
|||
NIR_PASS_V(nir, nir_lower_io_arrays_to_elements_no_indirects, true);
|
||||
}
|
||||
|
||||
// TODO: also optimize the tex srcs. see radeonSI for reference */
|
||||
/* Skip if there are potentially conflicting rounding modes */
|
||||
if (!nir_has_any_rounding_mode_enabled(nir->info.float_controls_execution_mode))
|
||||
NIR_PASS_V(nir, nir_fold_16bit_sampler_conversions, 0, UINT32_MAX);
|
||||
|
||||
optimize(nir);
|
||||
|
||||
NIR_PASS_V(nir, nir_lower_var_copies);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue