Browse Source

[vk] Aliging ExtendedDynamicState2

pull/3168/head
CamilleLaVey 4 weeks ago
committed by Caio Oliveira
parent
commit
cd4a0dcf94
No known key found for this signature in database GPG Key ID: 362DA3DC1901E080
  1. 13
      src/video_core/renderer_vulkan/vk_rasterizer.cpp

13
src/video_core/renderer_vulkan/vk_rasterizer.cpp

@ -941,11 +941,14 @@ void RasterizerVulkan::UpdateDynamicStates() {
UpdateDepthTestEnable(regs);
UpdateDepthWriteEnable(regs);
UpdateStencilTestEnable(regs);
if (device.IsExtExtendedDynamicState2Supported()) {
UpdatePrimitiveRestartEnable(regs);
UpdateRasterizerDiscardEnable(regs);
UpdateDepthBiasEnable(regs);
}
}
// EDS2 states must always be set, not just when TouchStateEnable() is true
if (device.IsExtExtendedDynamicState2Supported()) {
UpdatePrimitiveRestartEnable(regs);
UpdateRasterizerDiscardEnable(regs);
UpdateDepthBiasEnable(regs);
}
if (state_tracker.TouchStateEnable()) {
if (device.IsExtExtendedDynamicState3EnablesSupported()) {
using namespace Tegra::Engines;
if (device.GetDriverID() == VkDriverIdKHR::VK_DRIVER_ID_AMD_OPEN_SOURCE || device.GetDriverID() == VkDriverIdKHR::VK_DRIVER_ID_AMD_PROPRIETARY) {

Loading…
Cancel
Save