GNOME Bugzilla – Bug 665723
Conformance tests failed (snippets, pipeline_uniforms)
Last modified: 2011-12-07 19:13:24 UTC
Hi, The following tests failed on both Linux and Windows: test_cogl_pipeline_uniforms test_cogl_snippets with a message like the following (on both Windows and Linux): ERROR:..\..\..\tests\conform\test-utils.c:96:???: assertion failed (screen_pixel == intended_pixel): ("#ff007f" == "#ff0080") Disabling that assertion check would make the tests pass, but I doubt doing so is good-might defeat the purposes of those tests. Thank you, and God Bless!
I guess this is because the test is storing 0.5 to the color from the shader and it's up to the hardware whether it rounds this to 0x7f or 0x80. Maybe we should add some fuzz to the comparison.
Created attachment 202984 [details] [review] test-utils: Add some fuzz to the pixel comparison routine When comparing a pixel, the comparison routines now allow each component to be off by +/- 1. This is to compensate for varying rounding across drivers.
Hi, I think this update worked for me on the nVidia NVS 42000 graphics on my laptop. Thanks-did not expect this to be a driver issue. God Bless!
Thanks for looking at this. I've pushed the patch as 4c8966122f0