mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	
						commit
						244ba1a610
					
				@ -393,6 +393,17 @@ const Math::Vec4<u8> LookupTexture(const u8* source, int x, int y, const Texture
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    case Regs::TextureFormat::I4:
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1);
 | 
				
			||||||
 | 
					        const u8* source_ptr = source + morton_offset / 2;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        u8 i = (morton_offset % 2) ? ((*source_ptr & 0xF0) >> 4) : (*source_ptr & 0xF);
 | 
				
			||||||
 | 
					        i = Color::Convert4To8(i);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return { i, i, i, 255 };
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    case Regs::TextureFormat::A4:
 | 
					    case Regs::TextureFormat::A4:
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1);
 | 
					        u32 morton_offset = VideoCore::GetMortonOffset(x, y, 1);
 | 
				
			||||||
 | 
				
			|||||||
@ -156,7 +156,7 @@ struct Regs {
 | 
				
			|||||||
        I8           =  7,
 | 
					        I8           =  7,
 | 
				
			||||||
        A8           =  8,
 | 
					        A8           =  8,
 | 
				
			||||||
        IA4          =  9,
 | 
					        IA4          =  9,
 | 
				
			||||||
 | 
					        I4           = 10,
 | 
				
			||||||
        A4           = 11,
 | 
					        A4           = 11,
 | 
				
			||||||
        ETC1         = 12,  // compressed
 | 
					        ETC1         = 12,  // compressed
 | 
				
			||||||
        ETC1A4       = 13,  // compressed
 | 
					        ETC1A4       = 13,  // compressed
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user