Skip to content

Add InterlockedExchange tests - #1437

Open
bob80905 wants to merge 6 commits into
llvm:mainfrom
bob80905:add_interlockedxchg_tests
Open

Add InterlockedExchange tests#1437
bob80905 wants to merge 6 commits into
llvm:mainfrom
bob80905:add_interlockedxchg_tests

Conversation

@bob80905

Copy link
Copy Markdown
Contributor

This PR adds the InterlockedExchange tests.
It also lights up a feature bit that is necessary for testing floats on groupshared memory using atomic operations.

Fixes #854
Assisted by: Github Copilot

Comment thread lib/API/VK/Device.cpp Outdated
}
#endif

#ifdef VK_EXT_SHADER_ATOMIC_FLOAT_EXTENSION_NAME

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why do we need to do a preprocessor for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Not strictly necessary.
This was added to mimic / stay consistent with other preprocessing guards, as seen on line 1590.
However, we use a newer macro elsewhere, unguarded (VK_EXT_mesh_shader).
So this ifdef will always be true assuming the build works.
I'll remove the guards.

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.

Add test for InterlockedExchange

3 participants