Remove .value_type from code object v3 metadata
This seems to not actually have any function. The OpenCL API test passes without it, and the way it's produced is problematic. Change-Id: I384bfa01dee7023484348b184ddd1b2d44a91f7d
Этот коммит содержится в:
@@ -61,26 +61,6 @@ amd_comgr_status_t getMetaBuf(const amd_comgr_metadata_node_t meta,
|
||||
return status;
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
inline static clk_value_type_t UpdateArgType(uint sizeType, uint numElements) {
|
||||
switch (numElements) {
|
||||
case 1:
|
||||
return ClkValueMapType[sizeType][0];
|
||||
case 2:
|
||||
return ClkValueMapType[sizeType][1];
|
||||
case 3:
|
||||
return ClkValueMapType[sizeType][2];
|
||||
case 4:
|
||||
return ClkValueMapType[sizeType][3];
|
||||
case 8:
|
||||
return ClkValueMapType[sizeType][4];
|
||||
case 16:
|
||||
return ClkValueMapType[sizeType][5];
|
||||
default:
|
||||
return T_VOID;
|
||||
}
|
||||
}
|
||||
|
||||
// ================================================================================================
|
||||
static amd_comgr_status_t populateArgs(const amd_comgr_metadata_node_t key,
|
||||
const amd_comgr_metadata_node_t value,
|
||||
@@ -151,15 +131,6 @@ static amd_comgr_status_t populateArgs(const amd_comgr_metadata_node_t key,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ArgField::ValueType:
|
||||
{
|
||||
auto itValueType = ArgValueType.find(buf);
|
||||
if (itValueType == ArgValueType.end()) {
|
||||
return AMD_COMGR_STATUS_ERROR;
|
||||
}
|
||||
lcArg->type_ = UpdateArgType(itValueType->second.first, itValueType->second.second);
|
||||
}
|
||||
break;
|
||||
case ArgField::PointeeAlign:
|
||||
lcArg->info_.arrayIndex_ = atoi(buf.c_str());
|
||||
break;
|
||||
@@ -437,15 +408,6 @@ static amd_comgr_status_t populateArgsV3(const amd_comgr_metadata_node_t key,
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ArgField::ValueType:
|
||||
{
|
||||
auto itValueType = ArgValueTypeV3.find(buf);
|
||||
if (itValueType == ArgValueTypeV3.end()) {
|
||||
return AMD_COMGR_STATUS_ERROR;
|
||||
}
|
||||
lcArg->type_ = UpdateArgType(itValueType->second.first, itValueType->second.second);
|
||||
}
|
||||
break;
|
||||
case ArgField::PointeeAlign:
|
||||
lcArg->info_.arrayIndex_ = atoi(buf.c_str());
|
||||
break;
|
||||
|
||||
Ссылка в новой задаче
Block a user