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

Mismatch ByteAddressBuffer offset ordering linux vs windows #307

Open
Keenuts opened this issue Feb 25, 2025 · 1 comment
Open

Mismatch ByteAddressBuffer offset ordering linux vs windows #307

Keenuts opened this issue Feb 25, 2025 · 1 comment
Assignees

Comments

@Keenuts
Copy link

Keenuts commented Feb 25, 2025

Hi,

It looks like there is a behavior difference between linux & windows on the order of the ByteAddressBuffer offsets.
(re-ordered in #275 after a flip in #267)

Taking tests/user_type/byte_address_buffer_1.spv.yaml at c637858

On linux, I get the yaml order: [1, 2], but on Windows, I get the reversed order [2, 1].
I have in total ~10 broken tests on Windows, but all shown the exact same offsets, just in the revered order (inc on linux, dec on windows).

Not familiar with spirv-reflect, so unsure what would cause this.

@spencer-lunarg
Copy link
Contributor

We use qsort to sort these, I clearly only have ran the tests on Linux.

I will run on Windows and figure out where we are doing the platform dependent sorting to unify it

@spencer-lunarg spencer-lunarg self-assigned this Feb 25, 2025
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

No branches or pull requests

2 participants