OpenXR-SDK-Source icon indicating copy to clipboard operation
OpenXR-SDK-Source copied to clipboard

multilib/multiarch runtime selection on Linux

Open rpavlik opened this issue 5 years ago • 10 comments

cc @Ralith

Can't really load a 64-bit so into a 32-bit process, right?

rpavlik avatar Oct 24 '19 10:10 rpavlik

Yeah, though if the loader keeps searching when dlopen returns an error it should Just Work.

Ralith avatar Oct 24 '19 16:10 Ralith

cc @alee-ccu

rpavlik avatar Oct 24 '19 18:10 rpavlik

@Ralith so you'd just install different file names for the 32-bit and 64-bit manifest so they both can coexist?

Hmm - but they can't both be active_runtime.json

rpavlik avatar Oct 24 '19 19:10 rpavlik

Oh, right, I was thinking in Vulkan loader terms. Yeah, this is a problem; probably the json format will need to be changed. How is it handled on Windows?

On Thu, Oct 24, 2019, 12:01 Ryan A. Pavlik [email protected] wrote:

@Ralith https://github.com/Ralith so you'd just install different file names for the 32-bit and 64-bit manifest so they both can coexist?

Hmm - but they can't both be active_runtime.json

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/142?email_source=notifications&email_token=AAAZQ3UAVR252UACXOLLXR3QQHWHVA5CNFSM4JESHC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGCW6Q#issuecomment-546057082, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZQ3SHNI3NGYSBSEEGXN3QQHWHVANCNFSM4JESHC4Q .

Ralith avatar Oct 24 '19 19:10 Ralith

Windows has separate registry keys for 32bit and 64bit. A Linux equivalent solution would be different well known file names or different well known file paths for the json. IMO, Ideally we keep the json schema unchanged.

brycehutchings avatar Oct 24 '19 19:10 brycehutchings

Updating the schema has advantages: it allows XR_RUNTIME_JSON to work for all processes, and makes it impossible to forget to update one of multiple files. I don't think the amount of breakage would be much different, either.

On Thu, Oct 24, 2019, 12:26 Bryce Hutchings [email protected] wrote:

Windows has separate registry keys for 32bit and 64bit. A Linux equivalent solution would be different well known file names or different well known file paths for the json. IMO, Ideally we keep the json schema unchanged.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/142?email_source=notifications&email_token=AAAZQ3X6C32TFEIEOEJDJMDQQHZFNA5CNFSM4JESHC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGFBPY#issuecomment-546066623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZQ3T7FGFSP5VWTV52ATDQQHZFNANCNFSM4JESHC4Q .

Ralith avatar Oct 24 '19 19:10 Ralith

well, but it would introduce a difference between platforms: right now, there's only one runtime manifest parser used all over.

rpavlik avatar Oct 25 '19 12:10 rpavlik

(I'm in favor of either decorated active_runtime.json filename, or a pattern of active_runtime.json files and it tries until it succeeds in loading from one of them)

rpavlik avatar Oct 25 '19 12:10 rpavlik

I suppose we could make XR_RUNTIME_JSON a delimited list, too, and there might be other applications for trying multiple runtimes.

On Fri, Oct 25, 2019, 05:53 Ryan A. Pavlik [email protected] wrote:

(I'm in favor of either decorated active_runtime.json filename, or a pattern of active_runtime.json files and it tries until it succeeds in loading from one of them)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/KhronosGroup/OpenXR-SDK-Source/issues/142?email_source=notifications&email_token=AAAZQ3QP2O3E2W2FVW2DS3TQQLT4DA5CNFSM4JESHC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECIIFUQ#issuecomment-546341586, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZQ3R4JM5VL7P5J5AIA33QQLT4DANCNFSM4JESHC4Q .

Ralith avatar Oct 25 '19 19:10 Ralith

An issue (number 1277) has been filed to correspond to this issue in the internal Khronos GitLab.

If you have a Khronos account, you can access that issue at KHR:openxr/openxr#1277.

rpavlik-bot avatar Dec 05 '19 18:12 rpavlik-bot