Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idiomatic Linux active_runtime.json search logic #51

Merged
merged 3 commits into from
Jun 14, 2019

Conversation

Ralith
Copy link
Contributor

@Ralith Ralith commented May 18, 2019

Based on #38. Fixes #28.

This updates the search logic to find the first active_runtime.json in standard config file locations, allowing for more graceful integration with Linux distribution tooling and user/administrator expectations.

I opted not to reuse ReadDataFilesInSearchPaths due to its complexity and conflation of config/data search paths.

If this is to be merged, the loader design doc will also need to be updated. I'm not sure where to find the source files for that.

@rpavlik
Copy link
Contributor

rpavlik commented May 20, 2019

I'm checking to see if there's any paperwork/admin stuff we need to do to put the loader docs up. I suspect not, since it's not normative. Think I'll just put the source for them in this repo, since they don't really affect the spec itself. (that make sense?)

Copy link
Contributor

@daveh-lunarg daveh-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, fixes the issue.

@daveh-lunarg
Copy link
Contributor

@rpavlik, I think we're good to go to push this - any objection?

Ralith added 3 commits June 13, 2019 10:26
Windows selects a runtime based on the registry, not a fixed path.
@Ralith
Copy link
Contributor Author

Ralith commented Jun 13, 2019

Updated to avoid assigning a null char* to a std::string in GetXDGEnv.

@daveh-lunarg
Copy link
Contributor

Hearing no dissent, pushing this.

@daveh-lunarg daveh-lunarg merged commit 88493a4 into KhronosGroup:master Jun 14, 2019
@Ralith Ralith deleted the runtime-search branch June 14, 2019 17:57
rpavlik added a commit that referenced this pull request Aug 14, 2020
This release is mainly for SDK improvements, with only small changes to
the docs. A new error code is provided for xrCreateSession for
developers convenience.

-   Registry
    -   Register ULTRALEAP author ID for Ultraleap. (internal MR 1877)
    -   Reserve the extension number 98 to 101 for future MSFT
        extensions. (internal MR 1879)
    -   schema: Distinguish parentstruct and structextends attributes in
        comments. (internal MR 1881, OpenXR-Docs/#51, internal issue
        1396)
    -   Add a new result code,
        XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING, for runtimes to
        return if xrBeginSession is called before calling one of the
        xrGetGraphicsRequirements calls. (internal MR 1882,
        OpenXR-Docs/#53, internal issue 1397)
-   SDK
    -   Improve language usage in code and comments to be more
        respectful. (internal MR 1881)
    -   Loader: Correct type of “extension_version” in API layer
        manifest files to string, while maintaining backwards
        compatibility. Remove undocumented and unused
        “device_extensions” and “entrypoints” keys. (internal MR 1867,
        internal issue 1411)
    -   Replace usage of std::filesystem::canonical with
        PathCchCanonicalize on Windows platform to work around bug on
        UWP platforms. This also replaces PathCanonicalize with
        PathCchCanonicalize and adds the appropriate library for linking
        in. (OpenXR-SDK-Source/#198)
    -   Support for building more projects when targeting UWP, and
        support for all architectures when targeting Win32.
        (OpenXR-SDK-Source/#199)
    -   hello_xr: fix Vulkan image layout transitions. (internal MR
        1876)
    -   validation: Enable three additional checks (on optional arrays
        with non- optional counts) that were missing because of a script
        error. (internal MR 1881)
rhabacker pushed a commit to rhabacker/OpenXR-SDK-Source that referenced this pull request Nov 16, 2022
This release is mainly for SDK improvements, with only small changes to
the docs. A new error code is provided for xrCreateSession for
developers convenience.

-   Registry
    -   Register ULTRALEAP author ID for Ultraleap. (internal MR 1877)
    -   Reserve the extension number 98 to 101 for future MSFT
        extensions. (internal MR 1879)
    -   schema: Distinguish parentstruct and structextends attributes in
        comments. (internal MR 1881, OpenXR-Docs/KhronosGroup#51, internal issue
        1396)
    -   Add a new result code,
        XR_ERROR_GRAPHICS_REQUIREMENTS_CALL_MISSING, for runtimes to
        return if xrBeginSession is called before calling one of the
        xrGetGraphicsRequirements calls. (internal MR 1882,
        OpenXR-Docs/KhronosGroup#53, internal issue 1397)
-   SDK
    -   Improve language usage in code and comments to be more
        respectful. (internal MR 1881)
    -   Loader: Correct type of “extension_version” in API layer
        manifest files to string, while maintaining backwards
        compatibility. Remove undocumented and unused
        “device_extensions” and “entrypoints” keys. (internal MR 1867,
        internal issue 1411)
    -   Replace usage of std::filesystem::canonical with
        PathCchCanonicalize on Windows platform to work around bug on
        UWP platforms. This also replaces PathCanonicalize with
        PathCchCanonicalize and adds the appropriate library for linking
        in. (OpenXR-SDK-Source/KhronosGroup#198)
    -   Support for building more projects when targeting UWP, and
        support for all architectures when targeting Win32.
        (OpenXR-SDK-Source/KhronosGroup#199)
    -   hello_xr: fix Vulkan image layout transitions. (internal MR
        1876)
    -   validation: Enable three additional checks (on optional arrays
        with non- optional counts) that were missing because of a script
        error. (internal MR 1881)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux active runtime search
3 participants