[D3D12] Ignore draws not writing to depth and fix a typo

This commit is contained in:
Triang3l
2018-08-07 22:57:12 +03:00
parent 52a1a80200
commit 46dc640209
3 changed files with 11 additions and 4 deletions

View File

@@ -411,7 +411,7 @@ PipelineCache::UpdateStatus PipelineCache::UpdateRasterizerState(
bool dirty = current_pipeline_ == nullptr;
uint32_t pa_su_sc_mode_cntl =
register_file_->values[XE_GPU_REG_RB_COLOR_MASK].u32;
register_file_->values[XE_GPU_REG_PA_SU_SC_MODE_CNTL].u32;
uint32_t cull_mode = pa_su_sc_mode_cntl & 0x3;
if (primitive_type == PrimitiveType::kPointList ||
primitive_type == PrimitiveType::kRectangleList) {