Update gpu backend to only transfer if it can populate

This commit is contained in:
Ryan Huffman 2017-04-25 16:31:42 -07:00 committed by Atlante45
parent d338ccac26
commit 382fe5d38d

View file

@ -464,7 +464,7 @@ void GLVariableAllocationSupport::updateMemoryPressure() {
newState = MemoryPressureState::Transfer;
} else if (pressure > OVERSUBSCRIBED_PRESSURE_VALUE && canDemote) {
newState = MemoryPressureState::Oversubscribed;
} else if (pressure < UNDERSUBSCRIBED_PRESSURE_VALUE && ((unallocated != 0 && canPromote) || canPopulate)) {
} else if (pressure < UNDERSUBSCRIBED_PRESSURE_VALUE && ((unallocated != 0 && canPromote) && canPopulate)) {
newState = MemoryPressureState::Undersubscribed;
}