From 1bd36db421a5e706b6f8d67f1e26990379bb2b4b Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 19 Dec 2014 20:04:47 -0800 Subject: [PATCH] Missed a bit in dirty page removal. --- src/alloy/compiler/passes/data_flow_analysis_pass.cc | 2 +- src/xenia/gpu/buffer_resource.cc | 8 ++++---- src/xenia/gpu/texture_resource.cc | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/alloy/compiler/passes/data_flow_analysis_pass.cc b/src/alloy/compiler/passes/data_flow_analysis_pass.cc index 7f0737028..b814f9260 100644 --- a/src/alloy/compiler/passes/data_flow_analysis_pass.cc +++ b/src/alloy/compiler/passes/data_flow_analysis_pass.cc @@ -173,7 +173,7 @@ void DataFlowAnalysisPass::AnalyzeFlow(HIRBuilder* builder, builder->last_instr()->MoveBefore(block->instr_head); // Swap uses of original value with the local value. - auto instr = block->instr_head; + instr = block->instr_head; while (instr) { uint32_t signature = instr->opcode->signature; if (GET_OPCODE_SIG_TYPE_SRC1(signature) == OPCODE_SIG_TYPE_V) { diff --git a/src/xenia/gpu/buffer_resource.cc b/src/xenia/gpu/buffer_resource.cc index 9f9accb9b..67a8f8004 100644 --- a/src/xenia/gpu/buffer_resource.cc +++ b/src/xenia/gpu/buffer_resource.cc @@ -30,10 +30,10 @@ int BufferResource::Prepare() { } } - if (!dirtied_) { - return 0; - } - dirtied_ = false; + //if (!dirtied_) { + // return 0; + //} + //dirtied_ = false; // pass dirty regions? return InvalidateRegion(memory_range_); diff --git a/src/xenia/gpu/texture_resource.cc b/src/xenia/gpu/texture_resource.cc index 62500c778..0a6c1058f 100644 --- a/src/xenia/gpu/texture_resource.cc +++ b/src/xenia/gpu/texture_resource.cc @@ -305,10 +305,10 @@ int TextureResource::Prepare() { } } - if (!dirtied_) { - return 0; - } - dirtied_ = false; + //if (!dirtied_) { + // return 0; + //} + //dirtied_ = false; // pass dirty regions? return InvalidateRegion(memory_range_);