[PAL] Allow overriding reported asic revision

This is helpfull to do when debugging issues on lowend asics. Navi14 can be emulated as Navi10. So can Navi22 be emulated as Navi21.

Change-Id: I693ffd45a5b03657822afdc872781901bc69b65c
This commit is contained in:
Vladislav Sytchenko
2020-10-12 16:15:08 -04:00
orang tua 92f1ce41dc
melakukan 26d1b28b16
2 mengubah file dengan 6 tambahan dan 2 penghapusan
+3 -1
Melihat File
@@ -922,7 +922,9 @@ bool Device::create(Pal::IDevice* device) {
// Save the IP level for the offline detection
ipLevel_ = properties().gfxLevel;
asicRevision_ = properties().revision;
asicRevision_ = flagIsDefault(PAL_FORCE_ASIC_REVISION) ?
properties().revision :
static_cast<Pal::AsicRevision>(PAL_FORCE_ASIC_REVISION);
// XNACK flag should be set for PageMigration | IOMMUv2 Support
// Note: Navi2x should have a fix in HW