Commit 86031647 authored by Diana Chen's avatar Diana Chen Committed by gbsbuild

IGA: refine send comments, always print the src0 and src1 length

Change-Id: Ib9000bafbfdd275c38ccca6f19fcf392ce2f1949
parent 81d46788
......@@ -12,6 +12,9 @@ include (BuildFunctions.cmake)
set (CMAKE_CXX_STANDARD 11)
# do static build for IGA standalone build
set(LINK_AS_STATIC_LIB TRUE)
set(GED_BRANCH GED_external)
add_subdirectory(GEDLibrary/${GED_BRANCH})
......
......@@ -1430,17 +1430,22 @@ void Formatter::EmitSendDescriptorInfoGED(
ss << "h";
}
if (os.isSendsFamily()) {
if (has_ged_inst) {
uint32_t exLength = GED_GetExMsgLength(&gedInst, &getRetVal);
// emit src1 length
uint32_t src1_len = 0;
bool has_src1_len = false;
if (os.isSendsFamily() && has_ged_inst) {
src1_len = GED_GetExMsgLength(&gedInst, &getRetVal);
if (getRetVal != GED_RETURN_VALUE_SUCCESS) {
// in the case that we're able to construct ged inst, the
// ex_dess must be imm
exLength = getSplitSendMsgLength(ex_desc.imm);
}
ss << "+" << exLength;
// ex_desc must be imm
src1_len = getSplitSendMsgLength(ex_desc.imm);
}
has_src1_len = true;
}
if (has_src1_len)
ss << "+" << src1_len;
else
ss << "+?";
uint32_t respLength = GED_GetResponseLength(desc, gedP, &getRetVal);
if (getRetVal != GED_RETURN_VALUE_SUCCESS) {
......@@ -1578,8 +1583,8 @@ void Formatter::EmitSendDescriptorInfoGED(
switch (getScratchSpaceGRFsSize(desc)) {
case 0: ss << "1grf"; break;
case 1: ss << "2grfs"; break;
case 2: ss << "?grfs"; break;
case 3: ss << "4grfs"; break;
case 2: ss << "4grfs"; break;
case 3: ss << "8grfs"; break;
}
uint32_t off = getScratchSpaceAddressOffset(desc);
ss << " from 0x" << std::hex << off << ")";
......@@ -1603,8 +1608,6 @@ void Formatter::EmitSendDescriptorInfoGED(
ss << "#" << surf;
}
}
return;
}
......@@ -1728,8 +1731,8 @@ void Formatter::EmitSendDescriptorInfo(
switch (getBitField(desc, 12, 2)) {
case 0: ss << "1grf"; break;
case 1: ss << "2grfs"; break;
case 2: ss << "?grfs"; break;
case 3: ss << "4grfs"; break;
case 2: ss << "4grfs"; break;
case 3: ss << "8grfs"; break;
}
uint32_t off = getBitField(desc, 0, 12);
ss << " from 0x" << std::hex << off << ")";
......
......@@ -616,8 +616,7 @@ public:
const char *iga_version_string()
{
#define IGA_EXTERNAL_INTERNAL "ext"
return IGA_VERSION_STRING "-" IGA_EXTERNAL_INTERNAL;
return IGA_VERSION_STRING;
}
......
......@@ -26,7 +26,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifndef _IGA_VERSION_HPP_
#define _IGA_VERSION_HPP_
#define IGA_VERSION_STRING "2.4p1"
#define IGA_VERSION_STRING "0.13.14"
#endif // _IGA_VERSION_HPP_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment