vk/drivers: Restore polaris+ patch to disable primitive restart

This commit is contained in:
kd-11 2018-02-15 21:04:05 +03:00
parent 32f0e91893
commit ebb9fc7cd9

View file

@ -283,7 +283,8 @@ namespace vk
g_current_renderer = device;
const auto gpu_name = g_current_renderer.gpu().name();
/* const std::array<std::string, 8> black_listed =
#ifdef _WIN32
const std::array<std::string, 8> black_listed =
{
// Black list all polaris unless its proven they dont have a problem with primitive restart
"RX 580",
@ -303,12 +304,14 @@ namespace vk
g_drv_no_primitive_restart_flag = !g_cfg.video.vk.force_primitive_restart;
break;
}
}*/
}
if (gpu_name.find("AMD") != std::string::npos)
//Older cards back to GCN1 break primitive restart on 16-bit indices
if (gpu_name.find("Radeon") != std::string::npos)
{
g_drv_force_32bit_indices = true;
}
#endif
}
bool emulate_primitive_restart()