mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-03 16:39:01 -06:00 
			
		
		
		
	gl_shader_decompiler: Fixup slow path
This commit is contained in:
		@@ -826,7 +826,7 @@ private:
 | 
			
		||||
                // AMD's proprietary GLSL compiler emits ill code for variable component access.
 | 
			
		||||
                // To bypass this driver bug generate 4 ifs, one per each component.
 | 
			
		||||
                const std::string pack = code.GenerateTemporary();
 | 
			
		||||
                code.AddLine("vec4 {} = {}[{} >> 2];", pack, GetConstBuffer(cbuf->GetIndex()),
 | 
			
		||||
                code.AddLine("uvec4 {} = {}[{} >> 2];", pack, GetConstBuffer(cbuf->GetIndex()),
 | 
			
		||||
                             final_offset);
 | 
			
		||||
 | 
			
		||||
                const std::string result = code.GenerateTemporary();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user