Skip to content

spirv: Workaround for RelaxedPrecision on OpLogical* in 3DMark

Per spec RelaxedPrecision cannot be applied to bool types, however 3DMark Wild Life does it:

OpDecorate %171 RelaxedPrecision
...
%171 = OpLogicalAnd %bool %169 %170

Fixes crash in 3DMark Wild Life on Android.

Crashing shader: db0b768aacd21b6b.IlluminatePS.2fd08dba4b199c7d.frag

CC: @anholt

Edited by Danylo Piliaiev

Merge request reports