-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use precomputed primaries conversion #9814
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
Conversation
// TODO make image descriptions immutable and always set an id | ||
|
||
uint32_t SImageDescription::findId() const { | ||
for (auto it = knownDescriptionIds.begin(); it != knownDescriptionIds.end(); ++it) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: use for-each syntax, and maybe structured binding?
mat[0][1], mat[1][1], mat[2][1], // | ||
mat[0][2], mat[1][2], mat[2][2], // | ||
}; | ||
primariesConversionCache.insert(std::make_pair(cacheKey, glConvertMatrix)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: is there a reason you're doing insert
and std::make_pair
instead of just primariesConversionCache[cacheKey] = glConvertMatrix;
?
@UjinT34 can we get this going? I believe arch updated hyprgraphics so we can move this forward. |
Should I change anything? Failing checks are from older hypgraphics version. |
rebase on main to rerun ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
Describe your PR, what does it fix/add?
Removes heavy math, unnecessary inits and switch statements from CM shader.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
Is it ready for merging, or does it need work?
Ready. Requires hyprwm/hyprgraphics#14