2

ir3: disallow .sat on SEL instructions

 3 years ago
source link: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9666
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ir3: disallow .sat on SEL instructions

Saturation is unsupported on SEL instructions.
Rechecked this in the computerator.

Excerpt from the problematic shader:

mad.f32 r0.z, c0.y, r0.x, c6.w
sqrt r0.y, r0.y
mul.f r0.x, r1.y, c1.z
(ss)(nop2) mad.f32 r1.z, c6.x, r0.y, c6.y
(nop3) cmps.f.ge r0.y, r0.x, r1.w
(sat)(nop3) sel.b32 r0.w, r0.z, r0.y, r1.z   <----
mov.u32u32 r0.x, r0.w
mov.u32u32 r0.y, r0.w
mov.u32u32 r0.z, r0.w

Fixes main menu rendering in Genshin Impact on Turnip.

Before:

After:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK