Allow AllocFixed of unreserved ranges.

This commit is contained in:
Ben Vanik
2015-05-29 21:47:19 -07:00
parent d97a6d1929
commit c4ef5d4eb8
2 changed files with 13 additions and 6 deletions

View File

@@ -484,7 +484,10 @@ void CommandProcessor::UpdateWritePointer(uint32_t value) {
void CommandProcessor::WriteRegister(uint32_t index, uint32_t value) {
RegisterFile* regs = register_file_;
assert_true(index < RegisterFile::kRegisterCount);
if (index >= RegisterFile::kRegisterCount) {
XELOGW("CommandProcessor::WriteRegister index out of bounds: %d", index);
return;
}
regs->values[index].u32 = value;