mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Fix rebase errors
This commit is contained in:
		
							parent
							
								
									bdf9faab33
								
							
						
					
					
						commit
						ea1525dab1
					
				@ -822,8 +822,14 @@ TextureBufferUsage RasterizerOpenGL::SetupTextures(Maxwell::ShaderStage stage, c
 | 
				
			|||||||
        unit.sampler = sampler_cache.GetSampler(texture.tsc);
 | 
					        unit.sampler = sampler_cache.GetSampler(texture.tsc);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (const auto view{texture_cache.GetTextureSurface(texture, entry)}; view) {
 | 
					        if (const auto view{texture_cache.GetTextureSurface(texture, entry)}; view) {
 | 
				
			||||||
 | 
					            if (view->GetSurfaceParams().IsBuffer()) {
 | 
				
			||||||
 | 
					                // Record that this texture is a texture buffer.
 | 
				
			||||||
 | 
					                texture_buffer_usage.set(bindpoint);
 | 
				
			||||||
 | 
					            } else {
 | 
				
			||||||
 | 
					                // Apply swizzle to textures that are not buffers.
 | 
				
			||||||
                view->ApplySwizzle(texture.tic.x_source, texture.tic.y_source, texture.tic.z_source,
 | 
					                view->ApplySwizzle(texture.tic.x_source, texture.tic.y_source, texture.tic.z_source,
 | 
				
			||||||
                                   texture.tic.w_source);
 | 
					                                   texture.tic.w_source);
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            state.texture_units[current_bindpoint].texture = view->GetTexture();
 | 
					            state.texture_units[current_bindpoint].texture = view->GetTexture();
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            // Can occur when texture addr is null or its memory is unmapped/invalid
 | 
					            // Can occur when texture addr is null or its memory is unmapped/invalid
 | 
				
			||||||
 | 
				
			|||||||
@ -291,7 +291,7 @@ std::optional<ShaderDiskCacheDecompiled> ShaderDiskCacheOpenGL::LoadDecompiledEn
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ShaderDiskCacheDecompiled entry;
 | 
					    ShaderDiskCacheDecompiled entry;
 | 
				
			||||||
    entry.code = std::move(code);
 | 
					    entry.code = std::string(reinterpret_cast<const char*>(code.data()), code_size);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    u32 const_buffers_count{};
 | 
					    u32 const_buffers_count{};
 | 
				
			||||||
    if (!LoadObjectFromPrecompiled(const_buffers_count)) {
 | 
					    if (!LoadObjectFromPrecompiled(const_buffers_count)) {
 | 
				
			||||||
 | 
				
			|||||||
@ -167,6 +167,10 @@ public:
 | 
				
			|||||||
        return VideoCore::Surface::GetFormatCompressionType(pixel_format);
 | 
					        return VideoCore::Surface::GetFormatCompressionType(pixel_format);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    bool IsBuffer() const {
 | 
				
			||||||
 | 
					        return target == VideoCore::Surface::SurfaceTarget::TextureBuffer;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    std::string TargetName() const;
 | 
					    std::string TargetName() const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool is_tiled;
 | 
					    bool is_tiled;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user