Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test all draw functions fail if attributes are invalid #3437

Merged
merged 2 commits into from Jul 16, 2022

Conversation

greggman
Copy link
Contributor

#3434

ATM this test only tests if an attribute is enabled but
no buffer is bound that each draw function generates
INVALID_OPERATION

Not sure what else needs to be test. Maybe mis-matching attributes (an ivec4 attribute in shader but float attribute in vao)

@greggman greggman requested a review from kenrussell June 13, 2022 18:47
Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @greggman figuring out how to refactor these tests to apply the invalid vertex attribute tests to all draw functions.

In testing this locally I found a couple of bugs that happen when extensions weren't supported. I'll push a commit to this PR shortly which fixes these, the merge conflicts, and one other bug, for you to review.

@CLAassistant
Copy link

CLAassistant commented Jul 16, 2022

CLA assistant check
All committers have signed the CLA.

greggman and others added 2 commits July 15, 2022 17:29
ATM this test only tests if an attribute is enabled but no buffer is
bound that each draw function generates INVALID_OPERATION

Not sure what else needs to be tested. Maybe mis-matching attributes
(an ivec4 attribute in shader but float attribute in vao)

Fixes KhronosGroup#3434.
Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again @greggman for this improvement and apologies for taking so long to review it. These revised tests pass in Chrome, Firefox and Safari, modulo a couple of WEBGL_multi_draw failures in Safari Technology Preview which I believe @lexaknyazev already fixed in WebKit/WebKit#1452 .

Copy link
Contributor Author

@greggman greggman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kenrussell kenrussell merged commit f1e487d into KhronosGroup:main Jul 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants