diff options
| author | Ross Brunton <ross@codeplay.com> | 2025-06-30 12:14:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-30 12:14:00 +0100 |
| commit | 003145d0c8d5417d7b7ef1eb40838bc0fb50e229 (patch) | |
| tree | 9dbf68db2bc80d0c1aab5fb29a1603a0303be0ee /offload/liboffload/API | |
| parent | 6e6c61d696c9ead7deb0b05d3643bf5c70883aa3 (diff) | |
[Offload] Implement `olShutDown` (#144055)
`olShutDown` was not properly calling deinit on the platforms, resulting
in random segfaults on AMD devices.
As part of this, `olInit` and `olShutDown` now alloc and free the
offload context rather than it being static. This
allows `olShutDown` to be called within a destructor of a static object
(like the tests do) without having to worry about destructor ordering.
Diffstat (limited to 'offload/liboffload/API')
| -rw-r--r-- | offload/liboffload/API/Common.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/offload/liboffload/API/Common.td b/offload/liboffload/API/Common.td index 79c3bd46f198..669dfd3cca7c 100644 --- a/offload/liboffload/API/Common.td +++ b/offload/liboffload/API/Common.td @@ -176,7 +176,7 @@ def : Function { let desc = "Release the resources in use by Offload"; let details = [ "This decrements an internal reference count. When this reaches 0, all resources will be released", - "Subsequent API calls made after this are not valid" + "Subsequent API calls to methods other than `olInit` made after resources are released will return OL_ERRC_UNINITIALIZED" ]; let params = []; let returns = []; |
