mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Revert "Support for L0 to read Device LUID from the WDDM driver using EXT Pro...
This reverts commit af3dd2859b
.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
fc72de1168
commit
d7eacc0280
@ -52,23 +52,6 @@ void OsContextWin::reInitializeContext() {
|
||||
UNRECOVERABLE_IF(!wddm.createContext(*this));
|
||||
};
|
||||
|
||||
void OsContextWin::getDeviceLuidArray(std::vector<uint8_t> &luidData, size_t arraySize) {
|
||||
auto *wddm = this->getWddm();
|
||||
auto *hwDeviceID = wddm->getHwDeviceId();
|
||||
auto luid = hwDeviceID->getAdapterLuid();
|
||||
luidData.reserve(arraySize);
|
||||
for (size_t i = 0; i < arraySize; i++) {
|
||||
char *luidArray = nullptr;
|
||||
if (i < 4) {
|
||||
luidArray = (char *)&luid.LowPart;
|
||||
luidData.emplace(luidData.end(), luidArray[i]);
|
||||
} else {
|
||||
luidArray = (char *)&luid.HighPart;
|
||||
luidData.emplace(luidData.end(), luidArray[i - 4]);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
OsContextWin::~OsContextWin() {
|
||||
if (contextInitialized && (false == this->wddm.skipResourceCleanup())) {
|
||||
wddm.getWddmInterface()->destroyHwQueue(hardwareQueue.handle);
|
||||
|
@ -35,7 +35,6 @@ class OsContextWin : public OsContext {
|
||||
MOCKABLE_VIRTUAL WddmResidencyController &getResidencyController() { return residencyController; }
|
||||
static OsContext *create(OSInterface *osInterface, uint32_t contextId, const EngineDescriptor &engineDescriptor);
|
||||
void reInitializeContext() override;
|
||||
void getDeviceLuidArray(std::vector<uint8_t> &luidData, size_t arraySize);
|
||||
|
||||
protected:
|
||||
void initializeContext() override;
|
||||
|
Reference in New Issue
Block a user