8000 vk: implement proper offset when uploading to texture by poweifeng · Pull Request #8830 · google/filament · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

vk: implement proper offset when uploading to texture #8830

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

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

poweifeng
Copy link
Contributor

We didn't take into account the top/left/stride parameters of the PixelBufferDescriptor.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label Jun 5, 2025
@poweifeng poweifeng requested review from z3moon, bejado and phoenixxxx June 5, 2025 20:58
size_t const pixelSize = PixelBufferDescriptor::computeDataSize(p.format, p.type, 1, 1, 1);
size_t const pbdStride = p.stride ? p.stride : width;

// Slow path of copying row by row
Copy link
Member

Choose a reason for hiding this comment

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

Is the first branch the slow path? Maybe use UTILS_UNLIKELY

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point. done

We didn't take into account the top/left/stride parameters of the
PixelBufferDescriptor.
@poweifeng poweifeng force-pushed the pf/vk-fix-3dimage-offset branch from 14d5350 to 9ca3504 Compare June 6, 2025 20:33
@poweifeng poweifeng enabled auto-merge (squash) June 6, 2025 20:34
@poweifeng poweifeng merged commit 6a59c88 into main Jun 6, 2025
16 checks passed
@poweifeng poweifeng deleted the pf/vk-fix-3dimage-offset branch June 6, 2025 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0