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

spirv-val: Validate zero product workgroup size #5407

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

spencer-lunarg
Copy link
Contributor

Improved version of #4828

closes #4801

Created a EntryPointData reduce number of hash maps with the entry_point_id as the key

Copy link
Contributor

@alan-baker alan-baker left a comment

Choose a reason for hiding this comment

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

Still thinking about the change to save execution mode instructions. I'm not so sure about that.

source/val/validate_builtins.cpp Show resolved Hide resolved
source/val/validate_mode_setting.cpp Outdated Show resolved Hide resolved
const spv::ExecutionMode mode = spv::ExecutionMode(inst->word(2));
entry_point_data_[entry_point].execution_modes.insert(mode);

// Save for now since the IDs might have not been parsed yet
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Still thinking about the change to save execution mode instructions. I'm not so sure about that.

I guess is the issue there is some subtle reason we shouldn't be tracking the Instructions ?

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.

Missing validation for static workgroup size dimensions nonzero product.
2 participants