Gregg, I have another issue with a different webgl conformance test. The limits/gl-min-textures.html test enables 8 active textures and the fragment shader sums up the texel values. The expectation is that arithmetic on the texel values in the fragment shader should be equivalent to the same arithmetic on the ubyte components from the texture definition. I am seeing 1 bit lsb differences for some particular texture results and would like to request a tolerance allowance (with a ‘,1’ added as the last parameter to the wtu.checkCanvas call). The texel component values go through type and range conversions between definition in glTexImage2D and when they are used in the fragment shader. At glTexImage2D time the components are typically ubyte, [0..255]. In the fragment shader the texture2D returns a float per component with a range greater than [0.. 1.0]. When the color fragment is written to the destination surface there’s another type and range conversion back to [0..255] per component. On lower precision hardware, if the fragment shader is doing arithmetic on the texture values, then the result could fall into a range that ends up with an unexpected 1 bit lsb difference after conversion to the framebuffer format. A simplified description would be something like [0..0xFF] gets converted to the range [0..0x100] and back to [0..0xFF]. The intermediate range has ‘holes’ that lose on the conversion to the final range. Robert Tray From: Robert Tray Thanks Gregg. > this test actually does call bindAttribLocation in the utility function createProgram You’re right. I missed that. Now that I think about it, there was an unrelated problem fixed after I debugged that test that would explain what I saw. Thanks for the quick action. Robert Tray From: Gregg Tavares (wrk) [mailto:gman@google.com] Thank you for reviewing these On Thu, Oct 20, 2011 at 10:10 AM, Robert Tray <RTray@nvidia.com> wrote: The current webgl-conformance-tests.html fails a few tests that I’m hoping can be remedied with test changes. 1) Context/context-attributes-alpha-depth-stencil-antialias.html: The test makes assumptions about the location of attributes ‘pos’ and ‘colorIn’. The test is missing either a bindAttribLocation before the program link or a getAttribLocation after. this test actually does call bindAttribLocation in the utility function createProgram
done
done
|