From 0f593367905adc2332f771e6b94c403600f787e3 Mon Sep 17 00:00:00 2001 From: "n.savitchev" Date: Thu, 19 Dec 2024 13:33:41 +0300 Subject: [PATCH] 49ba24d4: DX12: fix view instancing caps check --- prog/engine/drv/drv3d_DX12/pipeline.cpp | 1 + prog/engine/drv/drv3d_DX12/render_state.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/prog/engine/drv/drv3d_DX12/pipeline.cpp b/prog/engine/drv/drv3d_DX12/pipeline.cpp index e101c3ce8..f633e20a5 100644 --- a/prog/engine/drv/drv3d_DX12/pipeline.cpp +++ b/prog/engine/drv/drv3d_DX12/pipeline.cpp @@ -178,6 +178,7 @@ bool PipelineVariant::generateRasterDescription(const RenderStateSystem::StaticS if (static_state.needsViewInstancing()) { + G_ASSERT(d3d::get_driver_desc().caps.hasBasicViewInstancing); target.append(static_state.getViewInstancingDesc()); } return true; diff --git a/prog/engine/drv/drv3d_DX12/render_state.h b/prog/engine/drv/drv3d_DX12/render_state.h index 097ad45b2..529f575ad 100644 --- a/prog/engine/drv/drv3d_DX12/render_state.h +++ b/prog/engine/drv/drv3d_DX12/render_state.h @@ -400,7 +400,6 @@ class RenderStateSystem } result.viewInstanceCount = def.viewInstanceCount; - G_ASSERT(result.viewInstanceCount == 0 || d3d::get_driver_desc().caps.hasBasicViewInstancing); result.enableConservativeRaster = def.conservativeRaster; result.enableAlphaToCoverage = def.alphaToCoverage;