这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@veluca93
Copy link
Member

In the render pipeline, we promise 16 floats before the pointer passed to each stage to be readable.

Because of implementation details of the pre-memory-manager image allocation, that was always the case before. Once we started using the memory manager, this is no longer the case. This PR introduces the possibility to explicitly ask for such padding and uses it in the render pipeline.

sboukortt
sboukortt previously approved these changes Jun 17, 2024
@eustas
Copy link
Contributor

eustas commented Jun 18, 2024

Could be simpler if we agree that pre_padding is always (A) kAlignment/2 or (B) kAlignment (and thus make pre_padding a bool parameter).
In that case overflow test could be left intact; pre_padding_groups will be always zero (or 1, if (B) and pre_padding requested)...
pre_padding requirement could be checked with static assert in render_pipeline.

In the render pipeline, we promise 16 floats before the pointer passed to
each stage to be readable.

Because of implementation details of the pre-memory-manager image
allocation, that was always the case before. Once we started using the
memory manager, this is no longer the case. This PR introduces the
possibility to explicitly ask for such padding and uses it in the render
pipeline.
@szabadka szabadka added the CI:full Label to attach to a PR to run the full CI workflow and not just the regular PR workflows label Jun 18, 2024
@veluca93 veluca93 added this pull request to the merge queue Jun 19, 2024
Merged via the queue into libjxl:main with commit af7bb4c Jun 19, 2024
@eustas eustas mentioned this pull request Aug 6, 2025
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:full Label to attach to a PR to run the full CI workflow and not just the regular PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants