P4 to Git Change 1312342 by rili@rili-opencl-pal-stg on 2016/09/08 13:27:45
SWDEV-101790 - Cherry-pick CL#1293292 from 16.20.1010 Support DriverStore in OCL Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/device.hpp#278 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#554 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#173 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#14 edit
This commit is contained in:
@@ -108,6 +108,9 @@ CALGSLDevice::getAttribs_int(gsl::gsCtx* cs)
|
||||
const uint8* boardName = cs->getString(GSL_GS_RENDERER);
|
||||
::strncpy(m_attribs.boardName, (char*)boardName, CAL_ASIC_INFO_MAX_LEN * sizeof(char));
|
||||
|
||||
const uint8* driverStore = cs->getString(GSL_GS_DRIVER_STORE_PATH);
|
||||
::strncpy(m_attribs.driverStore, (char*)driverStore, CAL_DRIVER_STORE_MAX_LEN * sizeof(char));
|
||||
|
||||
m_attribs.counterFreq = cs->getCounterFreq();
|
||||
m_attribs.nanoSecondsPerTick = 1000000000.0 / cs->getCounterFreq();
|
||||
m_attribs.longIdleDetect = cs->getLongIdleDetect();
|
||||
|
||||
@@ -47,6 +47,7 @@ typedef enum CALbooleanEnum {
|
||||
typedef struct CALimageRec* CALimage;
|
||||
|
||||
#define CAL_ASIC_INFO_MAX_LEN 128
|
||||
#define CAL_DRIVER_STORE_MAX_LEN 200
|
||||
|
||||
/** CAL device attributes */
|
||||
typedef struct CALdeviceattribsRec {
|
||||
@@ -86,6 +87,7 @@ typedef struct CALdeviceattribsRec {
|
||||
bool isWDDM2Enabled; /**< check if WDDM2 is enabled */
|
||||
CALuint maxRTCUs; /**< The maximum number of RT CUs for RT queues */
|
||||
CALuint asicRevision; /**< The ASIC revision ID */
|
||||
CALchar driverStore[CAL_DRIVER_STORE_MAX_LEN];/**< Driver store location. */
|
||||
} CALdeviceattribs;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user