Remove bitwise operations on bools from os_interface
Change-Id: If3cfb3daf9deefb0dac040b2c3e709764c7d3155 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
parent
ff0d1327f0
commit
6bd101609f
|
@ -93,12 +93,12 @@ bool setupArbSyncObject(GLSharingFunctions &sharing, OSInterface &osInterface, C
|
|||
glSyncInfo.submissionSynchronizationObject = submissionSyncEventInfo.hSyncObject;
|
||||
glSyncInfo.waitCalled = false;
|
||||
|
||||
bool setupFailed = false;
|
||||
setupFailed |= (glSyncInfo.event == nullptr);
|
||||
setupFailed |= (glSyncInfo.submissionEvent == nullptr);
|
||||
setupFailed |= (0 != serverSyncInitStatus);
|
||||
setupFailed |= (0 != clientSyncInitStatus);
|
||||
setupFailed |= (0 != submissionSyncInitStatus);
|
||||
bool setupFailed =
|
||||
(glSyncInfo.event == nullptr) ||
|
||||
(glSyncInfo.submissionEvent == nullptr) ||
|
||||
(0 != serverSyncInitStatus) ||
|
||||
(0 != clientSyncInitStatus) ||
|
||||
(0 != submissionSyncInitStatus);
|
||||
|
||||
if (setupFailed) {
|
||||
DEBUG_BREAK_IF(true);
|
||||
|
|
|
@ -36,7 +36,8 @@ int HwInfoConfig::configureHwInfo(const HardwareInfo *inHwInfo, HardwareInfo *ou
|
|||
static_cast<bool>(outHwInfo->featureTable.ftrGpGpuMidBatchPreempt));
|
||||
outHwInfo->capabilityTable.requiredPreemptionSurfaceSize = outHwInfo->gtSystemInfo.CsrSizeInMb * MemoryConstants::megaByte;
|
||||
|
||||
outHwInfo->capabilityTable.instrumentationEnabled &= haveInstrumentation;
|
||||
outHwInfo->capabilityTable.instrumentationEnabled =
|
||||
(outHwInfo->capabilityTable.instrumentationEnabled && haveInstrumentation);
|
||||
|
||||
auto &kmdNotifyProperties = outHwInfo->capabilityTable.kmdNotifyProperties;
|
||||
KmdNotifyHelper::overrideFromDebugVariable(DebugManager.flags.OverrideEnableKmdNotify.get(), kmdNotifyProperties.enableKmdNotify);
|
||||
|
|
|
@ -87,7 +87,8 @@ bool Wddm::init(HardwareInfo &outHardwareInfo) {
|
|||
|
||||
outHardwareInfo.capabilityTable = hardwareInfoTable[productFamily]->capabilityTable;
|
||||
outHardwareInfo.capabilityTable.maxRenderFrequency = maxRenderFrequency;
|
||||
outHardwareInfo.capabilityTable.instrumentationEnabled &= instrumentationEnabled;
|
||||
outHardwareInfo.capabilityTable.instrumentationEnabled =
|
||||
(outHardwareInfo.capabilityTable.instrumentationEnabled && instrumentationEnabled);
|
||||
|
||||
HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily);
|
||||
|
||||
|
|
Loading…
Reference in New Issue