mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
refactor: correct naming of enum class constants 8/n
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
269009c299
commit
dd1b9d6abc
@@ -215,7 +215,7 @@ const void *HardwareParse::getStatelessArgumentPointer<GenGfxFamily>(const Kerne
|
||||
auto argOffset = std::numeric_limits<uint32_t>::max();
|
||||
// Determine where the argument is
|
||||
const auto &arg = kernelInfo.getArgDescriptorAt(indexArg);
|
||||
if (arg.is<ArgDescriptor::ArgTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
if (arg.is<ArgDescriptor::argTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
argOffset = arg.as<ArgDescPointer>().stateless;
|
||||
} else {
|
||||
return nullptr;
|
||||
|
||||
@@ -214,7 +214,7 @@ const void *HardwareParse::getStatelessArgumentPointer<GenGfxFamily>(const Kerne
|
||||
// Determine where the argument is
|
||||
|
||||
const auto &arg = kernelInfo.getArgDescriptorAt(indexArg);
|
||||
if (arg.is<ArgDescriptor::ArgTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
if (arg.is<ArgDescriptor::argTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
argOffset = arg.as<ArgDescPointer>().stateless;
|
||||
} else {
|
||||
return nullptr;
|
||||
|
||||
@@ -92,7 +92,7 @@ struct HardwareParse {
|
||||
previousCS = &commandStream;
|
||||
|
||||
sizeUsed = commandStream.getUsed();
|
||||
findHardwareCommands<FamilyType>(&commandStreamReceiver.getIndirectHeap(IndirectHeap::Type::DYNAMIC_STATE, 0));
|
||||
findHardwareCommands<FamilyType>(&commandStreamReceiver.getIndirectHeap(IndirectHeap::Type::dynamicState, 0));
|
||||
}
|
||||
|
||||
template <typename FamilyType>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -118,7 +118,7 @@ const void *HardwareParse::getStatelessArgumentPointer(const KernelInfo &kernelI
|
||||
|
||||
// Determine where the argument is
|
||||
const auto &arg = kernelInfo.getArgDescriptorAt(indexArg);
|
||||
if (arg.is<ArgDescriptor::ArgTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
if (arg.is<ArgDescriptor::argTPointer>() && isValidOffset(arg.as<ArgDescPointer>().stateless)) {
|
||||
return ptrOffset(pCrossThreadData, arg.as<ArgDescPointer>().stateless);
|
||||
}
|
||||
return nullptr;
|
||||
|
||||
Reference in New Issue
Block a user