Skip to content

Commit

Permalink
Vulkan: enable vertexPipelineStoresAndAtomics along with fragmentStor…
Browse files Browse the repository at this point in the history
…esAndAtomics
  • Loading branch information
ec- committed Jul 27, 2024
1 parent f0c43d3 commit 0c26ee3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/renderervk/vk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1588,7 +1588,8 @@ static qboolean vk_create_device( VkPhysicalDevice physical_device, int device_i
vk.wideLines = 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 Expand Up @@ -2859,6 +2860,7 @@ static void vk_alloc_persistent_pipelines( void )
}

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

0 comments on commit 0c26ee3

Please sign in to comment.