mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
- SurfaceBaseAddress should be programmed with aligned address this was not the case for certain origin and region values - offset from aligned address added to operationParams Change-Id: I0742b826dd0b70f0a6dedf436b850734fa015688 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
33 lines
968 B
C++
33 lines
968 B
C++
/*
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/helpers/options.h"
|
|
|
|
using namespace OCLRT;
|
|
|
|
struct HwInfoHelper {
|
|
HwInfoHelper() {
|
|
memcpy(&testPlatform, platformDevices[0]->pPlatform, sizeof(testPlatform));
|
|
memcpy(&testFtrTable, platformDevices[0]->pSkuTable, sizeof(testFtrTable));
|
|
memcpy(&testWaTable, platformDevices[0]->pWaTable, sizeof(testWaTable));
|
|
memcpy(&testSysInfo, platformDevices[0]->pSysInfo, sizeof(testSysInfo));
|
|
hwInfo.capabilityTable = platformDevices[0]->capabilityTable;
|
|
hwInfo.pPlatform = &testPlatform;
|
|
hwInfo.pSkuTable = &testFtrTable;
|
|
hwInfo.pSysInfo = &testSysInfo;
|
|
hwInfo.pWaTable = &testWaTable;
|
|
}
|
|
|
|
PLATFORM testPlatform;
|
|
FeatureTable testFtrTable;
|
|
WorkaroundTable testWaTable;
|
|
GT_SYSTEM_INFO testSysInfo;
|
|
HardwareInfo hwInfo;
|
|
};
|