Add cl_khr_device_uuid to extension list

Related-To: NEO-5681

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2022-05-11 14:08:18 +00:00
committed by Compute-Runtime-Automation
parent d5b2f03dc4
commit b450d3c20b
23 changed files with 362 additions and 51 deletions

View File

@@ -98,6 +98,12 @@ void MockDevice::resetCommandStreamReceiver(CommandStreamReceiver *newCsr, uint3
}
}
bool MockDevice::verifyAdapterLuid() {
if (callBaseVerifyAdapterLuid)
return Device::verifyAdapterLuid();
return verifyAdapterLuidReturnValue;
}
bool MockSubDevice::createEngine(uint32_t deviceCsrIndex, EngineTypeUsage engineTypeUsage) {
if (failOnCreateEngine) {
return false;

View File

@@ -163,11 +163,15 @@ class MockDevice : public RootDevice {
return isDebuggerActiveReturn;
}
bool verifyAdapterLuid() override;
static decltype(&createCommandStream) createCommandStreamReceiverFunc;
bool isDebuggerActiveParentCall = true;
bool isDebuggerActiveReturn = false;
bool callBaseGetMaxParameterSizeFromIGC = false;
bool callBaseVerifyAdapterLuid = true;
bool verifyAdapterLuidReturnValue = true;
size_t maxParameterSizeFromIGC = 0u;
};

View File

@@ -94,6 +94,7 @@ class WddmMock : public Wddm {
}
return verifyAdapterLuidReturnValue;
}
LUID getAdapterLuid() { return hwDeviceId->getAdapterLuid(); }
bool setAllocationPriority(const D3DKMT_HANDLE *handles, uint32_t allocationCount, uint32_t priority) override;
bool configureDeviceAddressSpace() {
@@ -164,6 +165,7 @@ class WddmMock : public Wddm {
NTSTATUS createAllocationStatus = STATUS_SUCCESS;
bool verifyAdapterLuidReturnValue = true;
bool callBaseVerifyAdapterLuid = false;
LUID mockAdaperLuid = {0, 0};
bool mapGpuVaStatus = true;
bool callBaseDestroyAllocations = true;
bool failOpenSharedHandle = false;