summaryrefslogtreecommitdiff
path: root/offload/liboffload/API/Program.td
diff options
context:
space:
mode:
authorRoss Brunton <ross@codeplay.com>2025-06-25 14:53:18 +0100
committerGitHub <noreply@github.com>2025-06-25 14:53:18 +0100
commit0870c8838ba20edc0fb7efe60a0ee301bf01d209 (patch)
treeb52a4a2960798699ca906c13dcc06f0a145e650b /offload/liboffload/API/Program.td
parente90ab0e34277cb3e4ef1e468518c30322f9d2c65 (diff)
[Offload] Add an `unloadBinary` interface to PluginInterface (#143873)
This allows removal of a specific Image from a Device, rather than requiring all image data to outlive the device they were created for. This is required for `ol_program_handle_t`s, which now specify the lifetime of the buffer used to create the program.
Diffstat (limited to 'offload/liboffload/API/Program.td')
-rw-r--r--offload/liboffload/API/Program.td4
1 files changed, 3 insertions, 1 deletions
diff --git a/offload/liboffload/API/Program.td b/offload/liboffload/API/Program.td
index 8c88fe6e21e6..0476fa1f7c27 100644
--- a/offload/liboffload/API/Program.td
+++ b/offload/liboffload/API/Program.td
@@ -13,7 +13,9 @@
def : Function {
let name = "olCreateProgram";
let desc = "Create a program for the device from the binary image pointed to by `ProgData`.";
- let details = [];
+ let details = [
+ "The provided `ProgData` will be copied and need not outlive the returned handle",
+ ];
let params = [
Param<"ol_device_handle_t", "Device", "handle of the device", PARAM_IN>,
Param<"const void*", "ProgData", "pointer to the program binary data", PARAM_IN>,