[Piglit] [PATCH] tex-miplevel-selection: stop after 100 failures

Brian Paul brianp at vmware.com
Thu Jul 17 06:18:28 PDT 2014


Honestly, I don't have more time to spend on this.  I'd like to check in 
the patch as-is and maybe revisit the extras another day.

-Brina


On 07/16/2014 05:13 PM, Ken Phillis Jr wrote:
> I think this is a good idea and the patch looks good. Although I would
> suggest some calculations to see how much was skipped by reaching the
> failure threshold.
>
> On Jul 16, 2014 4:35 PM, "Brian Paul" <brianp at vmware.com
> <mailto:brianp at vmware.com>> wrote:
>
>     rather than continuing.  As it was, if something is majorly broken in
>     the driver, this test could report nearly 60,000 failure messages.
>     The results.json file is pretty huge in this case.
>     ---
>       tests/texturing/tex-miplevel-selection.c |    9 +++++++++
>       1 file changed, 9 insertions(+)
>
>     diff --git a/tests/texturing/tex-miplevel-selection.c
>     b/tests/texturing/tex-miplevel-selection.c
>     index 0f03c6e..11e4292 100644
>     --- a/tests/texturing/tex-miplevel-selection.c
>     +++ b/tests/texturing/tex-miplevel-selection.c
>     @@ -1456,6 +1456,10 @@ piglit_display(void)
>
>                            maxlevel, minlod, maxlod,
>
>                            bias, mipfilter)) {
>
>                  failed++;
>     +
>                  if (failed > 100) {
>     +
>                          printf("Stopping after 100 failures\n");
>     +
>                          goto end;
>     +
>                  }
>
>          }
>                                                                      }
>
>     total++;
>     @@ -1492,12 +1496,17 @@ piglit_display(void)
>
>                            baselevel, maxlevel, minlod,
>
>                            maxlod, bias, mipfilter)) {
>
>                  failed++;
>     +
>                  if (failed > 100) {
>     +
>                          printf("Stopping after 100 failures\n");
>     +
>                          goto end;
>     +
>                  }
>
>          }
>
>          total++;
>                                                                      }
>                      free(pix);
>              }
>
>     +end:
>              assert(glGetError() == 0);
>              printf("Summary: %i/%i passed\n", total-failed, total);
>
>     --
>     1.7.10.4
>
>     _______________________________________________
>     Piglit mailing list
>     Piglit at lists.freedesktop.org <mailto:Piglit at lists.freedesktop.org>
>     http://lists.freedesktop.org/mailman/listinfo/piglit
>     <https://urldefense.proofpoint.com/v1/url?u=http://lists.freedesktop.org/mailman/listinfo/piglit&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=fkB221Vk%2F1HcMtq53%2BNChG%2FhBvOVdRvmqwpf8YvZnRk%3D%0A&s=b2aefb428db050da37de2e9d5636dffee19071c1b2dd9c159311c87a8432b9ac>
>



More information about the Piglit mailing list