[Piglit] [PATCH 2/9] arb_direct_state_access: Added glTransformFeedbackBufferBase tests

Ilia Mirkin imirkin at alum.mit.edu
Fri Feb 27 10:53:58 PST 2015


On Fri, Feb 27, 2015 at 1:04 PM, Laura Ekstrand <laura at jlekstrand.net> wrote:
> You only need to compute tolerance[0] once, but you need to call equal()
> lots of times.  You should make a static variable tolerance at the top of
> the file and call piglit_compute_probe_tolerance in piglit_init to
> initialize it.  Otherwise, this seems inefficient.

FWIW there's also an extern float piglit_tolerance[4]. All that
function does is a helper for dealing with various funky formats (like
luminance/alpha). I think you can just use piglit_tolerance[]
directly.


More information about the Piglit mailing list