Components: Vulkan
VK-GL-CTS issue: 4159
Affected tests:
dEQP-VK.draw.*.linear_interpolation.*
Change-Id: I026bb0128dc78ddab75cbfdcaabab00a8d05386a
<< " out_color /= " << m_interpolationRange << ";\n";
// Run additional sample comparison test. If it fails, we write 1.0 to blue color channel.
- frg << " if (out_color_sample != interpolateAtOffset(in_color, gl_SamplePosition - vec2(0.5)))\n"
+ frg << " vec4 diff = out_color_sample - interpolateAtOffset(in_color, gl_SamplePosition - vec2(0.5));"
+ << " float min_precision = 0.000001;\n"
+ << " if (diff.x > min_precision && diff.y > min_precision && diff.z > min_precision && diff.w > min_precision)\n"
<< " {\n"
<< " out_color.z = 1.0;\n"
<< " }\n";