refactor: simplify isDcFlushAllowed implementation

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2024-03-14 10:15:48 +00:00
committed by Compute-Runtime-Automation
parent ef7dbc99f1
commit 8fe1a460f8
8 changed files with 15 additions and 13 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2023 Intel Corporation
* Copyright (C) 2021-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -67,6 +67,8 @@ struct PVC : public XeHpcCoreFamily {
return (revId <= 0x3);
}
static constexpr uint32_t pvcSteppingBits = 0b111;
static constexpr bool isDcFlushAllowed = false;
};
class PvcHwConfig : public PVC {

View File

@@ -16,17 +16,6 @@ bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *rel
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isDcFlushAllowed() const {
auto dcFlushAllowed = false;
if (debugManager.flags.AllowDcFlush.get() != -1) {
dcFlushAllowed = debugManager.flags.AllowDcFlush.get();
}
return dcFlushAllowed;
}
template <>
void ProductHelperHw<gfxProduct>::adjustSamplerState(void *sampler, const HardwareInfo &hwInfo) const {
using SAMPLER_STATE = typename XeHpcCoreFamily::SAMPLER_STATE;