Don't use device from kernel if possible [1/n]

Related-To: NEO-5001
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-11-13 11:41:45 +01:00
committed by Compute-Runtime-Automation
parent a2d2bd629a
commit bd432fa94c
11 changed files with 67 additions and 42 deletions

View File

@@ -59,7 +59,8 @@ struct HardwareCommandsHelper : public PerThreadDataHelper {
const Kernel &kernel,
uint32_t bindingTablePrefetchSize,
PreemptionMode preemptionMode,
INTERFACE_DESCRIPTOR_DATA *inlineInterfaceDescriptor);
INTERFACE_DESCRIPTOR_DATA *inlineInterfaceDescriptor,
const HardwareInfo &hardwareInfo);
static void sendMediaStateFlush(
LinearStream &commandStream,
@@ -91,7 +92,8 @@ struct HardwareCommandsHelper : public PerThreadDataHelper {
PreemptionMode preemptionMode,
WALKER_TYPE<GfxFamily> *walkerCmd,
INTERFACE_DESCRIPTOR_DATA *inlineInterfaceDescriptor,
bool localIdsGenerationByRuntime);
bool localIdsGenerationByRuntime,
const HardwareInfo &hardwareInfo);
static void programPerThreadData(
size_t &sizePerThreadData,