mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/vulkan: create binary semaphore when signal timeline is supplied
We were only creating the binary semaphore when implicit sync interop was available. We also use the binary semaphore when explicit sync is enabled. Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3973
This commit is contained in:
		
							parent
							
								
									22db307e4c
								
							
						
					
					
						commit
						d4e4c9f64b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -480,7 +480,7 @@ static bool render_pass_submit(struct wlr_render_pass *wlr_pass) {
 | 
				
			||||||
		.semaphore = renderer->timeline_semaphore,
 | 
							.semaphore = renderer->timeline_semaphore,
 | 
				
			||||||
		.value = render_timeline_point,
 | 
							.value = render_timeline_point,
 | 
				
			||||||
	};
 | 
						};
 | 
				
			||||||
	if (renderer->dev->implicit_sync_interop) {
 | 
						if (renderer->dev->implicit_sync_interop || pass->signal_timeline != NULL) {
 | 
				
			||||||
		if (render_cb->binary_semaphore == VK_NULL_HANDLE) {
 | 
							if (render_cb->binary_semaphore == VK_NULL_HANDLE) {
 | 
				
			||||||
			VkExportSemaphoreCreateInfo export_info = {
 | 
								VkExportSemaphoreCreateInfo export_info = {
 | 
				
			||||||
				.sType = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO,
 | 
									.sType = VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue