Skip to content

Commit

Permalink
Vulkan: Upstream changes from quake3e
Browse files Browse the repository at this point in the history
Vulkan: enable vertexPipelineStoresAndAtomics along with fragmentStoresAndAtomics
ec-/Quake3e@0c26ee3
  • Loading branch information
JKSunny committed Aug 4, 2024
1 parent 14b248a commit 7ca4684
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 7ca4684

Please sign in to comment.