video_core: make gpu context aware of rendering program

This commit is contained in:
Liam 2024-02-23 22:38:21 -05:00
parent f9bfdb1555
commit d66ca8b731
10 changed files with 38 additions and 18 deletions

View file

@ -1061,7 +1061,9 @@ void RasterizerVulkan::UpdateDepthBias(Tegra::Engines::Maxwell3D::Regs& regs) {
if (device.IsExtDepthBiasControlSupported()) {
return true;
}
if (!Settings::values.renderer_amdvlk_depth_bias_workaround) {
// Only activate this in Super Smash Brothers Ultimate
// Affects AMD cards using AMDVLK
if (program_id != 0x1006A800016E000ULL) {
return false;
}
// the base formulas can be obtained from here: