Browse Source

Fix 2 validation errors

Panagiotis Christopoulos Charitos 6 years ago
parent
commit
cf646891d7
2 changed files with 3 additions and 4 deletions
  1. 1 4
      src/anki/gr/vulkan/Pipeline.cpp
  2. 2 0
      src/anki/renderer/GenericCompute.cpp

+ 1 - 4
src/anki/gr/vulkan/Pipeline.cpp

@@ -378,10 +378,7 @@ const VkGraphicsPipelineCreateInfo& PipelineStateTracker::updatePipelineCreateIn
 		VK_DYNAMIC_STATE_STENCIL_REFERENCE,
 		VK_DYNAMIC_STATE_LINE_WIDTH}};
 
-	dynCi.dynamicStateCount = (m_state.m_inputAssembler.m_topology != PrimitiveTopology::LINES
-								  && m_state.m_inputAssembler.m_topology != PrimitiveTopology::LINE_STRIP)
-								  ? DYN.getSize() - 1
-								  : DYN.getSize();
+	dynCi.dynamicStateCount = DYN.getSize();
 	dynCi.pDynamicStates = &DYN[0];
 	ci.pDynamicState = &dynCi;
 

+ 2 - 0
src/anki/renderer/GenericCompute.cpp

@@ -33,6 +33,8 @@ void GenericCompute::populateRenderGraph(RenderingContext& ctx)
 		},
 		this,
 		0);
+
+	pass.newDependency({m_r->getDepthDownscale().getHiZRt(), TextureUsageBit::SAMPLED_COMPUTE});
 }
 
 void GenericCompute::run(RenderPassWorkContext& rgraphCtx)