P4 to Git Change 1279182 by asalmanp@asalmanp-ocl-stg-pal on 2016/06/13 15:10:34

SWDEV-79278 - [OpenCL][PAL][GFXIP9 Bring up] OCL GFXIP9 general development.Adding support for ASIC detection based on gfxLevel on PAL.  For GFXIP9+, the Asic revision on PAL is Unknown and gfxLevel should be used for ASIC detection.

	ReviewBoardURL = http://ocltc.amd.com/reviews/r/10616/

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldefs.hpp#4 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#9 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palprogram.cpp#6 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palsettings.cpp#4 edit
This commit is contained in:
foreman
2016-06-13 15:20:52 -04:00
parent 0a6f25b703
commit 2d5f1bc48d
4 changed files with 30 additions and 11 deletions
+7 -1
View File
@@ -637,7 +637,13 @@ Device::create(Pal::IDevice* device)
ipLevel_ = properties().gfxLevel;
// Update HW info for the device
hwInfo_ = &DeviceInfo[static_cast<uint>(properties().revision)];
if (properties().revision == Pal::AsicRevision::Unknown) {
hwInfo_ = &GfxIpDeviceInfo[static_cast<uint>(properties().gfxLevel)];
}
else {
hwInfo_ = &DeviceInfo[static_cast<uint>(properties().revision)];
}
// Find the number of available engines
numComputeEngines_ =