texture_cache: Don't Image Copy if component types differ
This commit is contained in:
		
				
					committed by
					
						 ReinUsesLisp
						ReinUsesLisp
					
				
			
			
				
	
			
			
			
						parent
						
							9f755218a1
						
					
				
				
					commit
					6f69f06873
				
			| @@ -389,7 +389,8 @@ private: | |||||||
|         const auto gpu_addr = current_surface->GetGpuAddr(); |         const auto gpu_addr = current_surface->GetGpuAddr(); | ||||||
|         TSurface new_surface = GetUncachedSurface(gpu_addr, params); |         TSurface new_surface = GetUncachedSurface(gpu_addr, params); | ||||||
|         const auto& cr_params = current_surface->GetSurfaceParams(); |         const auto& cr_params = current_surface->GetSurfaceParams(); | ||||||
|         if (!support_info.depth_color_image_copies && cr_params.type != params.type) { |         if (cr_params.type != params.type && (!support_info.depth_color_image_copies || | ||||||
|  |                                               cr_params.component_type != params.component_type)) { | ||||||
|             BufferCopy(current_surface, new_surface); |             BufferCopy(current_surface, new_surface); | ||||||
|         } else { |         } else { | ||||||
|             std::vector<CopyParams> bricks = current_surface->BreakDown(params); |             std::vector<CopyParams> bricks = current_surface->BreakDown(params); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user