mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
anv: enable localized loads for lower_shader_calls
On Q2RTX shaders : Instructions in all programs: 31039 -> 26150 (-15.8%) SENDs in all programs: 1587 -> 1148 (-27.7%) Loops in all programs: 4 -> 4 (+0.0%) Cycles in all programs: 420218 -> 392179 (-6.7%) Spills in all programs: 157 -> 132 (-15.9%) Fills in all programs: 337 -> 262 (-22.3%) Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Konstantin Seurer <konstantin.seurer@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16556>
This commit is contained in:
parent
53a0804146
commit
d766093199
1 changed files with 1 additions and 0 deletions
|
|
@ -2468,6 +2468,7 @@ compile_upload_rt_shader(struct anv_ray_tracing_pipeline *pipeline,
|
|||
const nir_lower_shader_calls_options opts = {
|
||||
.address_format = nir_address_format_64bit_global,
|
||||
.stack_alignment = BRW_BTD_STACK_ALIGN,
|
||||
.localized_loads = true,
|
||||
};
|
||||
|
||||
NIR_PASS(_, nir, nir_lower_shader_calls, &opts,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue