P4 to Git Change 1906676 by gandryey@gera-win10 on 2019/06/26 18:29:26

SWDEV-79445 - OCL generic changes and code clean-up
	- Rename targetName_ to machineTarget_

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#55 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#145 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#95 edit
Αυτή η υποβολή περιλαμβάνεται σε:
foreman
2019-06-26 18:34:23 -04:00
γονέας 35e5a800fc
υποβολή a1235f5e94
3 αρχεία άλλαξαν με 10 προσθήκες και 10 διαγραφές
@@ -79,7 +79,7 @@ bool NullDevice::init() {
bool foundActive = false;
Pal::AsicRevision revision = static_cast<Pal::AsicRevision>(id);
if (pal::DeviceInfo[id].targetName_[0] == '\0') {
if (pal::DeviceInfo[id].machineTarget_[0] == '\0') {
continue;
}
@@ -117,7 +117,7 @@ bool NullDevice::init() {
uint gfxipVersion = IS_LIGHTNING ? pal::Gfx9PlusSubDeviceInfo[id].gfxipVersionLC_
: pal::Gfx9PlusSubDeviceInfo[id].gfxipVersion_;
if (pal::Gfx9PlusSubDeviceInfo[id].targetName_[0] == '\0') {
if (pal::Gfx9PlusSubDeviceInfo[id].machineTarget_[0] == '\0') {
continue;
}
@@ -148,11 +148,11 @@ bool NullDevice::init() {
// was listed previously in the Gfx9PlusSubDeviceInfo, if so, then it
// means the current entry already has been added in the offline device list
for (uint j = 0; j < id; ++j) {
if (pal::Gfx9PlusSubDeviceInfo[j].targetName_[0] == '\0') {
if (pal::Gfx9PlusSubDeviceInfo[j].machineTarget_[0] == '\0') {
continue;
}
if (strcmp(pal::Gfx9PlusSubDeviceInfo[j].targetName_,
pal::Gfx9PlusSubDeviceInfo[id].targetName_) == 0) {
if (strcmp(pal::Gfx9PlusSubDeviceInfo[j].machineTarget_,
pal::Gfx9PlusSubDeviceInfo[id].machineTarget_) == 0) {
foundDuplicate = true;
break;
}
@@ -554,7 +554,7 @@ void NullDevice::fillDeviceInfo(const Pal::DeviceProperties& palProp,
::strcat(info_.name_, "+sram-ecc");
}
} else {
::strcpy(info_.name_, hwInfo()->targetName_);
::strcpy(info_.name_, hwInfo()->machineTarget_);
}
}