[Mesa-dev] [PATCH] draw-robustness: Test robustness for out-of-bounds vertex fetches.

José Fonseca jfonseca at vmware.com
Fri Apr 1 07:05:21 PDT 2011


On 03/31/2011 09:38 PM, Eric Anholt wrote:
> On Thu, 31 Mar 2011 14:46:32 +0100, jfonseca at vmware.com wrote:
>    
>> +/* Test whether out-of-bounds vertex buffer object cause termination.
>> + *
>> + * Note that the original ARB_vertex_buffer_object extension explicitly states
>> + * program termination is allowed when out-of-bounds vertex buffer object
>> + * fetches occur.  The ARB_robustness extension does provides an enbale to
>> + * guarantee that out-of-bounds buffer object accesses by the GPU will have
>> + * deterministic behavior and preclude application instability or termination
>> + * due to an incorrect buffer access.  But regardless of ARB_robustness
>> + * extension support it is a good idea not to crash.  For example,  viewperf
>> + * doesn't properly detect NV_primitive_restart and emits 0xffffffff indices
>> + * which can result in crashes.
>> + *
>> + * TODO:
>> + * - test out-of-bound index buffer object access
>> + * - test more vertex/element formats
>> + * - test non-aligned offsets
>> + * - provide a command line option to actually enable ARB_robustness
>> + */
>>      
> Instead of a single draw-robustness test to (eventually) test all these
> things, a draw-robustness-* collection of tests for each would be way
> more useful.
>    

Sounds good. Will do.

Jose


More information about the mesa-dev mailing list