Missed a bit in dirty page removal.

This commit is contained in:
Ben Vanik 2014-12-19 20:04:47 -08:00
parent ecdf9d81f6
commit 1bd36db421
3 changed files with 9 additions and 9 deletions

View File

@ -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) {

View File

@ -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_);

View File

@ -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_);