Bug 32093

Summary: [swrast] implementation error: _mesa_clip_tab[4] failed test (x86)
Product: Mesa Reporter: Vinson Lee <vlee>
Component: Mesa coreAssignee: mesa-dev
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2010-12-03 18:37:03 UTC
mesa: 6c33e820d5fe740ac4735d8bab864177dd1b2f14 (master)

Run glean basic test on a debug swrast build on multiple visuals.

$ ./glean -r results -t basic
...
Mesa 7.10-devel implementation error: _mesa_clip_np_tab[4] failed test (x86)
...
Mesa 7.10-devel implementation error: _mesa_clip_tab[4] failed test (x86)


mesa/src/mesa/math/m_debug_clip.c
   354     for ( np = 0 ; np < 2 ; np++ ) {
   355        for ( psize = 2 ; psize <= 4 ; psize++ ) {
   356           clip_func func = clip_tab[np][psize];
   357           long *cycles = &(benchmark_tab[np][psize-1]);
   358  
   359           if ( test_cliptest_function( func, np, psize, cycles ) == 0 ) {
   360              char buf[100];
   361              sprintf( buf, "%s[%d] failed test (%s)",
   362                       cnames[np], psize, description );
   363              _mesa_problem( NULL, "%s", buf );
   364           }
Comment 1 Brian Paul 2010-12-06 08:47:49 UTC
I added an error margin to the testing code to "fix" this.
Commit b89a731ff297dec597e3a4be1abf94e97d9b0e44
Comment 2 Vinson Lee 2010-12-08 18:08:28 UTC
mesa: d0b2b8da7d363f6b79fcab7bfe6e81d1d436944e (master)

Verified fixed.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.