Closed Bug 1697818 Opened 3 years ago Closed 3 years ago

Drop handrolled NEON SIMD wrappers.

Categories

(Core :: Graphics: Color Management, defect)

defect

Tracking

()

RESOLVED FIXED
92 Branch
Tracking Status
firefox91 --- fixed
firefox92 --- fixed

People

(Reporter: jrmuizel, Assigned: jrmuizel)

References

Details

Attachments

(1 file)

We require Rust 1.50 now which is new enough to not need these
wrappers anymore. (edit: This comment was wrong at the time of writing. We required 1.47 then)

We require Rust 1.50 now which is new enough to not need these
wrappers anymore.

Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1bba2e7410e1
Drop handrolled NEON SIMD wrappers. r=aosmond
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

I do get this beauty when compiling firefox-88.0_beta3 for arm:

 2:00.25 error[E0432]: unresolved imports `core::arch::arm::vcvtq_s32_f32`, `core::arch::arm::vgetq_lane_s32`, `core::arch::arm::vld1q_dup_f32`, `core::arch::arm::vld1q_f32`, `core::arch::arm::vmaxq_f32`, `core::arch::arm::vminq_f32`
 2:00.25   --> gfx/qcms/src/transform_neon.rs:9:40
 2:00.25    |
 2:00.25 9  |     float32x4_t, int32x4_t, vaddq_f32, vcvtq_s32_f32, vgetq_lane_s32, vld1q_dup_f32, vld1q_f32,
 2:00.25    |                                        ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^  ^^^^^^^^^ no `vld1q_f32` in `arch::arm`
 2:00.25    |                                        |              |               |
 2:00.25    |                                        |              |               no `vld1q_dup_f32` in `arch::arm`
 2:00.25    |                                        |              no `vgetq_lane_s32` in `arch::arm`
 2:00.25    |                                        no `vcvtq_s32_f32` in `arch::arm`
 2:00.25 10 |     vmaxq_f32, vminq_f32, vmulq_f32,
 2:00.25    |     ^^^^^^^^^  ^^^^^^^^^ no `vminq_f32` in `arch::arm`
 2:00.25    |     |
--
 2:00.26    |     ^^^^^^^^^
 2:00.26 help: a similar name exists in the module
 2:00.26    |
 2:00.26 10 |     vmaxq_f32, vmvnq_s32, vmulq_f32,
 2:00.26    |                ^^^^^^^^^

I came here through the gecko-dev blame function - does your patch here raise minimal rust to rust-1.50.0 then? If so, please confirm so I can upgrade the toolchain - and please bump the config scripts accordingly to ask for propper rust version. Thank you :)

Ah, I thought it had been bumped. We should probably just revert this then. No need to raise it unnecessarily.

Flags: needinfo?(jmuizelaar)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: 88 Branch → ---
Status: REOPENED → NEW
Flags: needinfo?(jmuizelaar)

thanks for the backout, just wanted to tell you that there is nothing wrong with the code, as it compiles fine with rust-1.50.0

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:jrmuizel, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(jmuizelaar)
Flags: needinfo?(aosmond)

This needs to wait for MSRV bump

Flags: needinfo?(jmuizelaar)
Flags: needinfo?(aosmond)
Depends on: 1715282
Pushed by jmuizelaar@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d2a9c085409
Drop handrolled NEON SIMD wrappers. r=aosmond
Status: NEW → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

would 91.0 (new esr) benefit from an uplift?

Flags: needinfo?(jmuizelaar)

Probably wouldn't hurt as it should help avoid breakage with newer rust compilers.

Flags: needinfo?(jmuizelaar)

Comment on attachment 9208933 [details]
Bug 1697818 - Drop handrolled NEON SIMD wrappers.

Beta/Release Uplift Approval Request

  • User impact if declined: Firefox is less likely to compile with newer rust compilers because of its use of unstable rust features
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): The only risk of this is that it breaks someone's build
  • String changes made/needed:
Attachment #9208933 - Flags: approval-mozilla-beta?

Comment on attachment 9208933 [details]
Bug 1697818 - Drop handrolled NEON SIMD wrappers.

Approved for 91 beta 6, thanks.

Attachment #9208933 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: