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

Vulkan: Upstream changes from quake3e #211

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion codemp/rd-vulkan/vk_instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,8 @@ static qboolean vk_create_device( VkPhysicalDevice physical_device, int device_i
vk.shaderStorageImageMultisample = qtrue;
}

if (device_features.fragmentStoresAndAtomics) {
if ( device_features.fragmentStoresAndAtomics && device_features.vertexPipelineStoresAndAtomics ) {
features.vertexPipelineStoresAndAtomics = VK_TRUE;
features.fragmentStoresAndAtomics = VK_TRUE;
vk.fragmentStores = qtrue;
}
Expand Down
2 changes: 2 additions & 0 deletions codemp/rd-vulkan/vk_pipelines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,8 @@ void vk_alloc_persistent_pipelines( void )
#endif // USE_PMLIGHT
}

// flare visibility test dot
if ( vk.fragmentStores )
{
Com_Memset(&def, 0, sizeof(def));
def.face_culling = CT_TWO_SIDED;
Expand Down