diff options
author | Erico Nunes <[email protected]> | 2020-04-13 15:32:01 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-09 11:30:07 +0000 |
commit | 8c4157138f331d5053036f756aefa7006bbb6fac (patch) | |
tree | 22af1a9d309add9095cc464648711ffdeb633301 /src/gallium/drivers/lima/ir/lima_ir.h | |
parent | 5e6c3861182cbf481ce3d25d0bbbcad4916c92dd (diff) |
lima/ppir: duplicate consts in nir
Move the duplicate consts step to a nir pass.
This makes the nir representation closer to what ppir will have in the
result.
Additionally, it handles the case where a const is used multiple times
by a single node (which can happen in instructions like fcsel). The new
implementation will only emit a single load const for that case.
Signed-off-by: Erico Nunes <[email protected]>
Reviewed-by: Vasily Khoruzhick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4535>
Diffstat (limited to 'src/gallium/drivers/lima/ir/lima_ir.h')
-rw-r--r-- | src/gallium/drivers/lima/ir/lima_ir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/ir/lima_ir.h b/src/gallium/drivers/lima/ir/lima_ir.h index d84bf969276..2817e7d5639 100644 --- a/src/gallium/drivers/lima/ir/lima_ir.h +++ b/src/gallium/drivers/lima/ir/lima_ir.h @@ -68,6 +68,7 @@ bool lima_nir_scale_trig(nir_shader *shader); bool lima_nir_lower_ftrunc(nir_shader *shader); bool lima_nir_split_load_input(nir_shader *shader); +void lima_nir_duplicate_load_consts(nir_shader *shader); void lima_nir_duplicate_load_inputs(nir_shader *shader); void lima_nir_duplicate_load_uniforms(nir_shader *shader); |