Skip to content

Commit

Permalink
don't force Native Depth Interpolation for AMD GPUs
Browse files Browse the repository at this point in the history
Some AMD GPUs have issues with this option enabled so let the user
decide.
partial revert of 9f9b29b and
cab19ad.
Issue #1445

Add BSD CI badge to README
  • Loading branch information
flyinghead committed Mar 10, 2024
1 parent d323490 commit 464defe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![C/C++ CI](https://github.com/flyinghead/flycast/actions/workflows/c-cpp.yml/badge.svg)](https://github.com/flyinghead/flycast/actions/workflows/c-cpp.yml)
[![Nintendo Switch CI](https://github.com/flyinghead/flycast/actions/workflows/switch.yml/badge.svg)](https://github.com/flyinghead/flycast/actions/workflows/switch.yml)
[![Windows UWP CI](https://github.com/flyinghead/flycast/actions/workflows/uwp.yml/badge.svg)](https://github.com/flyinghead/flycast/actions/workflows/uwp.yml)
[![BSD CI](https://github.com/flyinghead/flycast/actions/workflows/bsd.yml/badge.svg)](https://github.com/flyinghead/flycast/actions/workflows/bsd.yml)

![flycast logo](https://github.com/flyinghead/flycast/raw/master/shell/linux/flycast.png)

Expand Down
4 changes: 0 additions & 4 deletions core/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,10 +685,6 @@ void Emulator::requestReset()

void loadGameSpecificSettings()
{
// Graphics context isn't available yet in libretro
if (GraphicsContext::Instance() != nullptr && GraphicsContext::Instance()->isAMD())
config::NativeDepthInterpolation.override(true);

if (settings.platform.isConsole())
{
reios_disk_id();
Expand Down
9 changes: 0 additions & 9 deletions shell/libretro/libretro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1241,12 +1241,6 @@ void retro_reset()
emu.start();
}

static void forceNativeDepthInterpolation()
{
if (GraphicsContext::Instance()->isAMD())
config::NativeDepthInterpolation.override(true);
}

#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES)
static void context_reset()
{
Expand All @@ -1256,7 +1250,6 @@ static void context_reset()
glsm_ctl(GLSM_CTL_STATE_SETUP, NULL);
rend_term_renderer();
theGLContext.init();
forceNativeDepthInterpolation();
rend_init_renderer();
}

Expand Down Expand Up @@ -1817,7 +1810,6 @@ static void retro_vk_context_reset()
return;
}
theVulkanContext.init((retro_hw_render_interface_vulkan *)vulkan);
forceNativeDepthInterpolation();
rend_term_renderer();
rend_init_renderer();
}
Expand Down Expand Up @@ -1949,7 +1941,6 @@ static void dx11_context_reset()
theDX11Context.term();

theDX11Context.init(hw_render->device, hw_render->context, hw_render->D3DCompile, hw_render->featureLevel);
forceNativeDepthInterpolation();
if (config::RendererType == RenderType::OpenGL_OIT || config::RendererType == RenderType::Vulkan_OIT)
config::RendererType = RenderType::DirectX11_OIT;
else if (config::RendererType != RenderType::DirectX11_OIT)
Expand Down

0 comments on commit 464defe

Please sign in to comment.