[PATCH i-g-t 18/28] Remember to implement PACKETTYPE_RESULT_OVERRIDE
Petri Latvala
petri.latvala at intel.com
Mon Mar 22 11:34:10 UTC 2021
---
lib/runnercomms.c | 7 +++++++
lib/runnercomms.h | 2 ++
2 files changed, 9 insertions(+)
diff --git a/lib/runnercomms.c b/lib/runnercomms.c
index 77869d06..86472b29 100644
--- a/lib/runnercomms.c
+++ b/lib/runnercomms.c
@@ -209,6 +209,13 @@ union runnerpacket_read_helper read_runnerpacket(const struct runnerpacket *pack
if (ret.versionstring.text == NULL)
ret.type = PACKETTYPE_INVALID;
+ break;
+ case PACKETTYPE_RESULT_OVERRIDE:
+ read_cstring(&ret.resultoverride.result, &p, &sizeleft);
+
+ if (ret.resultoverride.result == NULL)
+ ret.type = PACKETTYPE_INVALID;
+
break;
default:
ret.type = PACKETTYPE_INVALID;
diff --git a/lib/runnercomms.h b/lib/runnercomms.h
index d9cd66b4..11f38375 100644
--- a/lib/runnercomms.h
+++ b/lib/runnercomms.h
@@ -114,6 +114,8 @@ union runnerpacket_read_helper {
} versionstring;
struct {
+ uint32_t type;
+
const char *result;
} resultoverride;
};
--
2.29.2
More information about the Intel-gfx-trybot
mailing list