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

Expose llvm groupdata size as a shadergroup attribute #1642

Merged

Conversation

chellmuth
Copy link
Collaborator

Signed-off-by: Chris Hellmuth chellmuth@gmail.com

Description

Adds the llvm_groupdata_size attribute so the renderer can inspect a shader group's GroupData struct size. On GPU this lets us reserve memory more efficiently.

Tests

No changes.

Checklist:

  • I have read the contribution guidelines.
  • I have previously submitted a Contributor License Agreement.
  • I have updated the documentation, if applicable.
  • I have ensured that the change is tested somewhere in the testsuite (adding new test cases if necessary).
  • My code follows the prevailing code style of this project.

Signed-off-by: Chris Hellmuth <chellmuth@gmail.com>
Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

Can you please also add to the comments in oslexec.h (line 334-448) where we briefly explain every attribute that can be queried?

Copy link
Collaborator

@lgritz lgritz left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@lgritz lgritz merged commit 9ae5b69 into AcademySoftwareFoundation:main Feb 4, 2023
lgritz pushed a commit to lgritz/OpenShadingLanguage that referenced this pull request Feb 20, 2023
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

2 participants