Giovanni Mascellani (@giomasce) commented about tests/hlsl-smoothstep.shader_test:
+[pixel shader] +// 4 division by zero warnings. +float4 main() : sv_target +{
- float4 a = {0, 0, 0, 0};
- float4 b = {-1, -1, 0, 0};
- float4 x = {0, -0.25, 0, 1};
- return smoothstep(a, b, x);
+}
+[test] +draw quad +probe all rgba (0, 0.156250, 0, 1.000000)
With my iGPU (`Driver name: Intel open-source Mesa driver, driver info: Mesa 22.3.0.`) this fails with: ``` shader_runner:551:Section [test], line 123: Test failed: Got {0.00000000e+00, 1.56250000e-01, 0.00000000e+00, 0.00000000e+00}, expected {0.00000000e+00, 1.56250000e-01, 0.00000000e+00, 1.00000000e+00} at (0, 0). ```
It's working with any other implementation I've access to (including NVidia proprietary, RADV and llvmpipe), so I guess it's a bug in the Intel driver. It's probably not enough to delay this patch, I'll try to debug it better as soon as I have some time. Just wanted to let you know.