[Piglit] Over three thousand crashes on opengl driver of ADM&NV caused by commit b28cdc887aefb1e766719e1f74d457f77bdf9a18

Jordan Justen jljusten at gmail.com
Thu Apr 3 09:25:32 PDT 2014


On Thu, Apr 3, 2014 at 8:37 AM, Jordan Justen <jljusten at gmail.com> wrote:
> On Thu, Apr 3, 2014 at 2:42 AM, Fu, Ping <Ping.Fu at amd.com> wrote:
>> Hi Justen,
>>
>> I tested the latest piglit and found lots of crashes(Over three thousand) on
>> both AMD and NVIDIA. This might be caused by your commit
>> b28cdc887aefb1e766719e1f74d457f77bdf9a18 on shader_runner.c.
>
> Does the attached patch help?
>
> What is an example test that you see failing?

Well, looking at your email again (rather than just b28cdc88), it does
seem unlikely that my new patch would help.

If you could point out a test that is crashing for you, that would be
a big help.

And, does reverting b28cdc88 fix things?

Thanks,

-Jordan

>> According to page 363 and 360 of glspec44.compatibility for glVertexPointer:
>> "An INVALID_OPERATION error is generated if a non-zero vertex array object
>> is bound, no buffer is bound to ARRAY_BUFFER, and pointer is not NULL."  So
>> if app who wants to use VAO, should obey the following gl call sequence:
>>
>>
>>
>> glGenVertexArrays
>>
>> glBindVertexArray
>>
>> glGenBuffers
>>
>> glBindBuffer
>>
>> glBufferData
>>
>> glVertexAttribPointer
>>
>>
>>
>> But now the red part missed under current code path when
>> use_fixed_function_attributes and INVALID_OPERATION was returned by
>> subsequent glVertexAttribPointer. Then both AMD and NVIDIA crashed on
>> subsequent glDrawArrays. Besides, mesa driver's gl_version=30 so it followed
>> another code path which didn't use VAO, and had no crash.
>>
>>
>>
>> Best Regards
>>
>> --------------------------------------------------------------------------------------------
>>
>> Ping Fu
>>
>> OpenGL-SRDC
>>
>> AMD SRDC SW Graphics
>>
>> Desk Phone Ext./DID: 25547
>>
>> Mobile:86-13671725562
>>
>> Bldg #47 No.1387 Zhang Dong Road, Zhanghiang Hi-Tech Park, Shanghai PRC
>>
>> --------------------------------------------------------------------------------------------
>>
>>
>>
>>
>> _______________________________________________
>> Piglit mailing list
>> Piglit at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/piglit
>>


More information about the Piglit mailing list