mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
refactor: simplify isDcFlushAllowed implementation
Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
ef7dbc99f1
commit
8fe1a460f8
@@ -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 {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user