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:
Filip Hazubski 2019-08-13 10:06:28 +02:00 committed by sys_ocldev
parent ff0d1327f0
commit 6bd101609f
3 changed files with 10 additions and 8 deletions

View File

@ -93,12 +93,12 @@ bool setupArbSyncObject(GLSharingFunctions &sharing, OSInterface &osInterface, C
glSyncInfo.submissionSynchronizationObject = submissionSyncEventInfo.hSyncObject; glSyncInfo.submissionSynchronizationObject = submissionSyncEventInfo.hSyncObject;
glSyncInfo.waitCalled = false; glSyncInfo.waitCalled = false;
bool setupFailed = false; bool setupFailed =
setupFailed |= (glSyncInfo.event == nullptr); (glSyncInfo.event == nullptr) ||
setupFailed |= (glSyncInfo.submissionEvent == nullptr); (glSyncInfo.submissionEvent == nullptr) ||
setupFailed |= (0 != serverSyncInitStatus); (0 != serverSyncInitStatus) ||
setupFailed |= (0 != clientSyncInitStatus); (0 != clientSyncInitStatus) ||
setupFailed |= (0 != submissionSyncInitStatus); (0 != submissionSyncInitStatus);
if (setupFailed) { if (setupFailed) {
DEBUG_BREAK_IF(true); DEBUG_BREAK_IF(true);

View File

@ -36,7 +36,8 @@ int HwInfoConfig::configureHwInfo(const HardwareInfo *inHwInfo, HardwareInfo *ou
static_cast<bool>(outHwInfo->featureTable.ftrGpGpuMidBatchPreempt)); static_cast<bool>(outHwInfo->featureTable.ftrGpGpuMidBatchPreempt));
outHwInfo->capabilityTable.requiredPreemptionSurfaceSize = outHwInfo->gtSystemInfo.CsrSizeInMb * MemoryConstants::megaByte; outHwInfo->capabilityTable.requiredPreemptionSurfaceSize = outHwInfo->gtSystemInfo.CsrSizeInMb * MemoryConstants::megaByte;
outHwInfo->capabilityTable.instrumentationEnabled &= haveInstrumentation; outHwInfo->capabilityTable.instrumentationEnabled =
(outHwInfo->capabilityTable.instrumentationEnabled && haveInstrumentation);
auto &kmdNotifyProperties = outHwInfo->capabilityTable.kmdNotifyProperties; auto &kmdNotifyProperties = outHwInfo->capabilityTable.kmdNotifyProperties;
KmdNotifyHelper::overrideFromDebugVariable(DebugManager.flags.OverrideEnableKmdNotify.get(), kmdNotifyProperties.enableKmdNotify); KmdNotifyHelper::overrideFromDebugVariable(DebugManager.flags.OverrideEnableKmdNotify.get(), kmdNotifyProperties.enableKmdNotify);

View File

@ -87,7 +87,8 @@ bool Wddm::init(HardwareInfo &outHardwareInfo) {
outHardwareInfo.capabilityTable = hardwareInfoTable[productFamily]->capabilityTable; outHardwareInfo.capabilityTable = hardwareInfoTable[productFamily]->capabilityTable;
outHardwareInfo.capabilityTable.maxRenderFrequency = maxRenderFrequency; outHardwareInfo.capabilityTable.maxRenderFrequency = maxRenderFrequency;
outHardwareInfo.capabilityTable.instrumentationEnabled &= instrumentationEnabled; outHardwareInfo.capabilityTable.instrumentationEnabled =
(outHardwareInfo.capabilityTable.instrumentationEnabled && instrumentationEnabled);
HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily); HwInfoConfig *hwConfig = HwInfoConfig::get(productFamily);