mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	render/vulkan: fix format features check for shm textures
We were checking whether any of the features was supported. We need to check if all of them are. This makes the check consistent with query_modifier_support() above.
This commit is contained in:
		
							parent
							
								
									ed018a3ee2
								
							
						
					
					
						commit
						30769723c1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -261,7 +261,7 @@ void vulkan_format_props_query(struct wlr_vk_device *dev,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// non-dmabuf texture properties
 | 
						// non-dmabuf texture properties
 | 
				
			||||||
	if (fmtp.formatProperties.optimalTilingFeatures & tex_features) {
 | 
						if ((fmtp.formatProperties.optimalTilingFeatures & tex_features) == tex_features) {
 | 
				
			||||||
		fmti.pNext = NULL;
 | 
							fmti.pNext = NULL;
 | 
				
			||||||
		ifmtp.pNext = NULL;
 | 
							ifmtp.pNext = NULL;
 | 
				
			||||||
		fmti.tiling = VK_IMAGE_TILING_OPTIMAL;
 | 
							fmti.tiling = VK_IMAGE_TILING_OPTIMAL;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue