mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
pan/bi: Lower umul_high
Also lower uadd_carry, which the mul_high lowering generates. Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8358>
This commit is contained in:
parent
2e372d0c3b
commit
3f7e7495fc
2 changed files with 5 additions and 0 deletions
|
|
@ -2162,6 +2162,8 @@ bi_optimize_nir(nir_shader *nir)
|
|||
NIR_PASS(progress, nir, nir_opt_algebraic);
|
||||
NIR_PASS(progress, nir, nir_opt_constant_folding);
|
||||
|
||||
NIR_PASS(progress, nir, nir_lower_alu);
|
||||
|
||||
if (lower_flrp != 0) {
|
||||
bool lower_flrp_progress = false;
|
||||
NIR_PASS(lower_flrp_progress,
|
||||
|
|
|
|||
|
|
@ -69,6 +69,9 @@ static const nir_shader_compiler_options bifrost_nir_options = {
|
|||
.lower_doubles_options = nir_lower_dmod,
|
||||
/* TODO: Don't lower supported 64-bit operations */
|
||||
.lower_int64_options = ~0,
|
||||
/* TODO: Use IMULD on v7 */
|
||||
.lower_mul_high = true,
|
||||
.lower_uadd_carry = true,
|
||||
|
||||
.lower_bitfield_extract_to_shifts = true,
|
||||
.has_fsub = true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue