Skip to content

Add OOB checks to draw and drawIndexed - #1866

Merged
kainino0x merged 5 commits into
mainfrom
draw-oob
Jun 22, 2021
Merged

kainino0x merged 5 commits into
mainfrom
draw-oob

Conversation

@toji

@toji toji commented Jun 21, 2021 •

Copy link
Copy Markdown
Member

Fixes #1834

Adds validation steps to draw() and drawIndexed() to check that any CPU-verifiable buffer range checks are performed. Trivial bounds checks were already in place for the indirect draw calls, so no change needs to be made there.


Preview | Diff

@toji
toji requested review from kainino0x and kvark June 21, 2021 22:40
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
Comment thread spec/index.bs Resolved
@kainino0x
kainino0x enabled auto-merge (squash) June 22, 2021 19:45
@kainino0x
kainino0x merged commit f03f257 into main Jun 22, 2021
@toji
toji deleted the draw-oob branch June 22, 2021 19:48
github-actions Bot added a commit that referenced this pull request Jun 22, 2021
SHA: f03f257
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jun 22, 2021
SHA: f03f257
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions Bot added a commit that referenced this pull request Jun 22, 2021
SHA: f03f257
Reason: push, by @kainino0x

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

Figure out whether indirectBuffer OOB is a validation error

4 participants