Remove legacy microcode version check in GpuAgent::InvalidateCodeCaches

Fixes instruction cache invalidation when using microcode branches.

Change-Id: I932676e683983145f5c807204e592fb5e530c8af
This commit is contained in:
Jay Cornwall
2019-01-22 16:04:55 -06:00
والد 8bee6e4976
کامیت 079eadd71b
@@ -1239,14 +1239,7 @@ void GpuAgent::InvalidateCodeCaches() {
// Microcode is handling code cache invalidation.
return;
}
} else if (isa_->GetMajorVersion() == 9) {
if (properties_.EngineId.ui32.uCode < 334) {
static std::once_flag once;
std::call_once(
once, []() { fprintf(stderr, "warning: code cache invalidation not implemented\n"); });
return;
}
} else {
} else if (isa_->GetMajorVersion() > 9) {
assert(false && "Code cache invalidation not implemented for this agent");
}