Giovanni Mascellani (@giomasce) commented about tests/sample-bias.shader_test:
+Texture2D t; +uniform float bias;
+float4 main(float2 coord : texcoord) : sv_target +{
- return t.SampleBias(s, coord, bias);
+}
+[test] +uniform 0 float4 6.5 0.0 0.0 0.0 +draw quad +probe all rgba (1.0, 0.0, 1.0, 0.0)
+uniform 0 float4 7.5 0.0 0.0 0.0 +draw quad +probe all rgba (0.41015625, 0.0, 1.0, 0.0)
That's going to be a joy...
I get 0.40625 on: * WARP on Windows 11 * Intel on Linux * proprietary NVIDIA on Linux
I get 0.41015625 on: * RADV on Linux
I get 0.431112289 on: * lavapipe on Linux
And we're not speaking of a handful of ULPs...
Not sure what's the best way to deal with this. Ideally I'd like tests to pass on all these platforms. Maybe we can just add a check that it is between 0.4 and 0.45.