diff --git a/steam-runtime-tools/graphics.c b/steam-runtime-tools/graphics.c index 6192501095260a63e6f508dbeb08036cfdf46614..0038e2c10c69a4647279cb68e4885340fcf46dc6 100644 --- a/steam-runtime-tools/graphics.c +++ b/steam-runtime-tools/graphics.c @@ -7111,7 +7111,7 @@ get_driver_loadables_from_json_report (JsonObject *json_obj, } } out: - return driver_info; + return g_list_reverse (driver_info); } /** diff --git a/tests/json-report/partial-report.json b/tests/json-report/partial-report.json index a76188cefe1f6777f7d75fd3ec4971aa6fab6211..2cfd6d9890e1fa866d9c9cbaa77b4264bb13a6d7 100644 --- a/tests/json-report/partial-report.json +++ b/tests/json-report/partial-report.json @@ -62,6 +62,26 @@ "error" : "Something went wrong" } ], + "explicit_layers" : [ + { + "json_path" : "/usr/share/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json", + "name": "VK_LAYER_MESA_overlay", + "description": "Mesa Overlay layer", + "type": "GLOBAL", + "api_version" : "1.1.73", + "implementation_version": "1", + "library_path" : "libVkLayer_MESA_overlay.so" + }, + { + "json_path" : "/usr/share/vulkan/explicit_layer.d/VkLayer_new.json", + "name": "VK_LAYER_MESA_overlay", + "description": "Mesa Overlay layer", + "type": "GLOBAL", + "api_version" : "1.1.73", + "implementation_version": "1", + "library_path" : "/usr/lib/libVkLayer_MESA_overlay.so" + } + ], "implicit_layers" : [ { "json_path" : "/usr/share/vulkan/implicit_layer.d/MangoHud.json", diff --git a/tests/system-info.c b/tests/system-info.c index 8c99e03d6274b780a1f8e3375d4d95f5cf683e81..9235c0de5e86a77b50faa09e65505c13ec77af16 100644 --- a/tests/system-info.c +++ b/tests/system-info.c @@ -3094,6 +3094,27 @@ static const JsonTest json_test[] = .error_message = "Something went wrong", }, }, + .vulkan_explicit_layer = + { + { + .json_path = "/usr/share/vulkan/explicit_layer.d/VkLayer_MESA_overlay.json", + .name = "VK_LAYER_MESA_overlay", + .description = "Mesa Overlay layer", + .type = "GLOBAL", + .api_version = "1.1.73", + .implementation_version = "1", + .library_path = "libVkLayer_MESA_overlay.so", + }, + { + .json_path = "/usr/share/vulkan/explicit_layer.d/VkLayer_new.json", + .name = "VK_LAYER_MESA_overlay", + .description = "Mesa Overlay layer", + .type = "GLOBAL", + .api_version = "1.1.73", + .implementation_version = "1", + .library_path = "/usr/lib/libVkLayer_MESA_overlay.so", + }, + }, .vulkan_implicit_layer = { {