VERY experimental Nintendo Switch 2 emulator
C++
Merge pull request #8858 from vonchenplus/mipmap
bunnei7c3bee5601fd
diff --cc src/video_core/shader_environment.cppindex fbabb32194,c903975fc2..63bcf93372--- a/src/video_core/shader_environment.cpp+++ b/src/video_core/shader_environment.cpp@@@ -304,11 -306,16 +306,17 @@@ u32 GraphicsEnvironment::ReadCbufValue(Shader::TextureType GraphicsEnvironment::ReadTextureType(u32 handle) {const auto& regs{maxwell3d->regs};- const bool via_header_index{regs.sampler_index == Maxwell::SamplerIndex::ViaHeaderIndex};- return ReadTextureTypeImpl(regs.tic.Address(), regs.tic.limit, via_header_index, handle);+ const bool via_header_index{regs.sampler_binding == Maxwell::SamplerBinding::ViaHeaderBinding};+ return ReadTextureTypeImpl(regs.tex_header.Address(), regs.tex_header.limit, via_header_index,+ handle);}+ u32 GraphicsEnvironment::ReadViewportTransformState() {+ const auto& regs{maxwell3d->regs};+ viewport_transform_state = regs.viewport_transform_enabled;+ return viewport_transform_state;+ }+ComputeEnvironment::ComputeEnvironment(Tegra::Engines::KeplerCompute& kepler_compute_,Tegra::MemoryManager& gpu_memory_, GPUVAddr program_base_,u32 start_address_)