[Piglit] [PATCH 2/3] arb_compute_shader: Test spilling with large block sizes.

Ilia Mirkin imirkin at alum.mit.edu
Tue Apr 12 19:10:47 UTC 2016


On Tue, Apr 12, 2016 at 2:59 PM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
> Quoting Bas Nieuwenhuizen (2016-04-12 01:14:51)
>> On Tue, Apr 12, 2016 at 9:34 AM, Dylan Baker <baker.dylan.c at gmail.com> wrote:
>> > Quoting Bas Nieuwenhuizen (2016-04-11 06:45:29)
> [snip]
>> >> +       data = (int*)glMapBuffer(GL_SHADER_STORAGE_BUFFER, GL_READ_ONLY);
>> >> +       for (i = 0; i < 1024; ++i)
>> >> +               if (data[i] != 2967)
>> >> +                       result = false;
>> >
>> > Shouldn't you break here?
>>
>> Both should be okay: testing a few more elements after a failing
>> comparison still results in a fail.I can add the break if preferred
>> though.
>>
>> - Bas
>
> I'm thinking about piglit total runtime, stopping as soon as we know we
> failed should save a little bit of time, right?

Assuming the common case is that you *don't* fail, it won't make a
difference. Seeing all the failures can be quite convenient when
debugging.

  -ilia


More information about the Piglit mailing list