mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
fix: override for driver protection bits
Add product helper method, default no override. Use single param. Usage unknown means no override. Related-To: NEO-14482 Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
468c62086e
commit
c5c87ab6f9
@@ -33,9 +33,9 @@ class MockGmmResourceInfo : public GmmResourceInfo {
|
||||
|
||||
size_t getRenderPitch() override { return rowPitch; }
|
||||
|
||||
uint64_t getDriverProtectionBits(bool overrideUsage, uint32_t usage) override {
|
||||
driverProtectionBitsUsageWasOverriden = overrideUsage;
|
||||
driverProtectionBitsUsageOverride = usage;
|
||||
uint64_t getDriverProtectionBits(uint32_t overrideUsage) override {
|
||||
driverProtectionBitsUsageWasOverriden = GMM_RESOURCE_USAGE_UNKNOWN != overrideUsage;
|
||||
driverProtectionBitsUsageOverride = overrideUsage;
|
||||
return driverProtectionBits;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user