- Apr 26, 2021
-
-
Simon McVittie authored
These are interesting to a diagnostic tool, but not to pressure-vessel. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Apr 20, 2021
-
-
Simon McVittie authored
We don't actually need this information, and it has a significant startup time cost with a cold cache. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Ludovico de Nittis authored
With this new function we can avoid repeating the same code over and over. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Feb 22, 2021
-
-
Ludovico de Nittis authored
With the additional "issues" entry in the s-r-s-i report we can now flag the ICDs/layers as being duplicated or also unsupported. This makes it easier to spot misconfigured systems or also regressions about how we import ICDs/layers inside the container. Fixes: T26156 Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Feb 19, 2021
-
-
Ludovico de Nittis authored
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Feb 04, 2021
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Jan 28, 2021
-
-
Ludovico de Nittis authored
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
Now that check-vulkan prints detailed information about every physical and virtual Vulkan GPU, we can start to provide this info in s-r-s-i too. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Jan 25, 2021
-
-
Simon McVittie authored
A single line with escaped newlines is unnecessarily hard to read. This repurposes code that we already had for printing a udev uevent pseudo-file in this way. We retain the ability to parse old s-r-s-i output in which the diagnostic messages were a string: the intended meaning is fairly obvious. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Jan 21, 2021
-
-
Ludovico de Nittis authored
JSON-GLib 1.2.0 introduced a new function called `json_from_string()`. It is an handy function that allows us to obtain a jsonNode with just a single operation. This function had to be backported, and modified a little, because we are targeting Scout that has an older JSON-GLib version that misses both `json_from_string()` and `json_parser_steal_root()` (that was used in `json_from_string()`). Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Jan 04, 2021
-
-
Ludovico de Nittis authored
When we build the search paths for the JSON ICDs it might happen to have the same directory multiple times. For example if we have "XDG_CONFIG_DIRS=/usr/share" and "XDG_DATA_DIRS=/usr/share" we will look in "/usr/share" two times and duplicate all the JSONs that we find. Usually this is not an issue but with some games, e.g. Red Dead Redemption 2, this can cause a crash at startup https://github.com/ValveSoftware/steam-runtime/issues/336 With this commit we filter out the directories that we already visited to prevent this kind of issues. Fixes: #48 Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Dec 11, 2020
-
-
Simon McVittie authored
Slackware puts DRI drivers here. Partially addresses https://github.com/ValveSoftware/steam-runtime/issues/318 Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Now that we have a backport of this function, we don't need to use a simplified version. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Dec 09, 2020
-
-
Simon McVittie authored
The API is that when we're inspecting a sysroot, we put the filename relative to the sysroot in the result object. We did this correctly for the ICDs, but not for layers. The result was that adding Vulkan layer support caused a regression for the sandbox-escaping prototype of launching pressure-vessel from inside Flatpak. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Nov 19, 2020
-
-
Simon McVittie authored
vulkan_layer_dup() can return NULL if self is not a valid SrtVulkanLayer (which would be undefined behaviour, and in fact we already checked for that situation, but gcc 8 can't tell that). This results in a build failure on Debian 10. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Nov 17, 2020
-
-
Ludovico de Nittis authored
Similarly to what we already have for ICDs, we are now able to parse the Vulkan layers JSON files and add this information in the report. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
Vulkan uses the same search paths for ICDs and layers. If we factor out the code that lists those search paths, we'll be able to reuse it for layers. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
Vulkan layers and Vulkan ICDs have a very similar structure, so refactoring SrtIcd to a more generic SrtLoadable gives us the ability to reuse the same structure and functions also for layers. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Nov 12, 2020
-
-
Ludovico de Nittis authored
We are now able to detect when the Primus graphics driver is in use. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Nov 09, 2020
-
-
Ludovico de Nittis authored
JSON-Glib 1.6.0 introduced new functions to get members from a JSON object with a default fallback value. This allows us to avoid manually checking the existence of a member. The functions that we currently need, have been backported to allow the execution on systems with a JSON-GLIB version older than the 1.6.0 Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Sep 29, 2020
-
-
Simon McVittie authored
Instead of calling getenv() if the environment is NULL, we determine what's in the environment on creating the SrtSystemInfo and then pass it around as a parameter. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
This simplifies various code paths. `/` is a perfectly good path to the system root. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Otherwise we'll treat them as relative to `/` instead of the current working directory, which breaks some of the tests when we move to always using a non-NULL sysroot (that is sometimes `/`). Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Sep 25, 2020
-
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
Simon McVittie authored
Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Sep 08, 2020
-
-
Simon McVittie authored
Diagnosed by scan-build during CI. Signed-off-by:
Simon McVittie <smcv@collabora.com>
-
- Jun 10, 2020
-
-
Ludovico de Nittis authored
The new srt_system_info_new_from_json() allows to create a new JSON. (Fixes: T16565) Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Apr 20, 2020
-
-
Ludovico de Nittis authored
Add a check similarly to the VDPAU one that we already have. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
We use the automated VDPAU check to add an entry in the steam-runtime-system-info report. Also `check-vdpau` has a new option `--verbose` that prints additional info about the driver in use. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Apr 10, 2020
-
-
Ludovico de Nittis authored
If we have an empty json file `json_node_get_object` will fail. Add a check before it and return with SRT_GRAPHICS_ISSUES_CANNOT_LOAD Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
VDPAU modules can be loaded in three different ways: - Using VDPAU_DRIVER_PATH environment variable, if set: ${VDPAU_DRIVER_PATH}/libvdpau_${VDPAU_DRIVER}.so.1 - Using VDPAU_MODULEDIR that evaluates to something like: /usr/lib/${multiarch}/libvdpau_${VDPAU_DRIVER}.so.1 - dlopening the bare filename libvdpau_${VDPAU_DRIVER}.so This commit tries to cover the third way that was still missing. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Mar 12, 2020
-
-
Ludovico de Nittis authored
Ubuntu 16.04 is older than GLVND and it places Mesa loaders in ${libdir}/mesa and the DRIs in ${libdir}/dri. So if we find a loader in a path that ends with "/mesa" we try to look one directory above. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Mar 10, 2020
-
-
Ludovico de Nittis authored
"srt_dri_driver_get_library_path" might return a relative path. Instead with this new function we will be sure to receive an absolute path to the driver. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
"srt_va_api_driver_get_library_path" might return a relative path. Instead with this new function we will be sure to receive an absolute path to the driver. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
Ludovico de Nittis authored
"srt_vdpau_driver_get_library_path" might return a relative path. Instead with this new function we will be sure to receive an absolute path to the driver. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Mar 06, 2020
-
-
Ludovico de Nittis authored
When listing graphics drivers now we also list GLX ICDs, such as libGLX_mesa.so.0 and libGLX_nvidia.so.0. Signed-off-by:
Ludovico de Nittis <ludovico.denittis@collabora.com>
-
- Mar 05, 2020
-
-
Jeremy Whiting authored
At the moment we run wflinfo with no special environment variables. Which is what we want when it's successful since setting LIBGL_DEBUG=verbose adds harmless things like libGL: Can't open configuration file /etc/drirc: No such file or directory. So if wflinfo returns any other than valid status run it again with LIBGL_DEBUG=verbose set in the environment.
-