Compare commits

...
5 changed files with 39 additions and 18 deletions

No files matched your search

@@ -412,14 +412,14 @@ static int dev_init(void) {
"generation %s)", g_colorspace_ext ? "enables" : "has no",
g_colorspace_ext ? "is possible where the screen surface offers one" : "is not possible: tone-mapped instead");
}
/* Prefer 1.3 for the frame-generation feature probe, but respect older system loaders. */
uint32_t loader_api = VK_API_VERSION_1_0;
if (g_vk.EnumerateInstanceVersion &&
g_vk.EnumerateInstanceVersion(&loader_api) != VK_SUCCESS) {
LOGE("present: cannot query the Vulkan loader version"); g_dev_state = -1; return -1;
}
if (loader_api < VK_API_VERSION_1_1) {
LOGE("present: Vulkan 1.1 or newer is required"); g_dev_state = -1; return -1;
/* Keep the existing 1.3 request unless the selected loader positively reports an
* older usable API. Custom ICDs may omit this optional global entry point. */
uint32_t loader_api = VK_API_VERSION_1_3;
if (g_vk.EnumerateInstanceVersion) {
uint32_t reported_api = VK_API_VERSION_1_3;
if (g_vk.EnumerateInstanceVersion(&reported_api) == VK_SUCCESS &&
reported_api >= VK_API_VERSION_1_1)
loader_api = reported_api;
}
VkApplicationInfo app = {.sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
.pApplicationName = "banner-wayland-present",
@@ -24,11 +24,12 @@ import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
/**
* The Vulkan driver the in-app compositor runs on. It has to be Turnip: the system Adreno driver
* The Vulkan driver the in-app compositor runs on. Adreno needs Turnip: its system driver
* does not implement VK_EXT_image_drm_format_modifier, so importing the dma-bufs gamescope hands
* over fails and the session renders nothing. Two builds ship in the apk, one per Adreno
* generation, and the GPU decides which is unpacked - unless the user has imported an AdrenoTools
* zip of their own and chosen it, which then wins.
* zip of their own and chosen it, which then wins. A positively identified Mali kbase GPU
* instead uses system Vulkan for shared-memory presentation; this does not supply a Linux ICD.
*
* <p>The guest's own Turnip is a different copy entirely - a glibc build inside the rootfs, or an
* imported one ({@link LinuxVulkanDriverManager}). This one is the bionic build the app process
+22 -2
View File
@@ -27,8 +27,9 @@ Desktop Steam can also use this mode on a pixman desktop.
The optional present timing, local texture allocation, SHM refresh and ready
fence handling in the new Gamescope patches apply only in this mode. Normal
sessions retain the original dma-buf, buffer-cache and presentation paths.
The Android presenter requests at most its loader's Vulkan API (minimum 1.1)
and advertises dma-buf import only when the complete extension set is available.
The Android presenter lowers its 1.3 request when the loader positively reports
an older usable API. Custom ICDs that cannot report a version retain the original
request. Dma-buf import is advertised only with the complete extension set.
## Validation
@@ -37,6 +38,25 @@ launcher with a capturing Gamescope executable: default accelerated backend,
custom-driver selection, software-only activation, precedence, overlay, HDR,
refresh rate and argument preservation. The native component is built against
all existing patches and checked against the runtime's shared-library list.
`gamescope-3.16.29-p6` is a versioned component release; the existing release
download/checksum path is unchanged. There is no CI artifact pin or extra build
workflow permission.
Local validation passed all 121 JVM tests and the macOS-applicable Python tests
(62 discovered, 13 Linux-only skipped). The corrected native build passed
[run 37161255955](https://github.com/Droid-Deck/DroidDeck/actions/runs/37161255955).
The final code's APK build, Python and JVM tests, and native dependency closure
check passed [run 37162182731](https://github.com/Droid-Deck/DroidDeck/actions/runs/37162182731).
The installed Gamescope binary matches the component's contents
(`2c92c155f7836a798c2a04eb1db5779e149680fcce888cd9a1ebe3fef7e5a2af`).
The cleanup build was installed in place on the wired Mali device using the
release-signed debug APK. Automatic selection logged the positive Mali kbase
identification, and Steam Big Picture reached the logged-in home screen through
the new software-compatible Gamescope. Animated frames and input worked. A
Geometry Wars retest stalled during Wine prefix startup; successful gameplay
below belongs to the earlier experiment, not this cleanup validation. No
physical Adreno device was updated during this cleanup.
Earlier experiment validation on the wired Unisoc T618 / Mali-G52 MC2 device
(Android 12, kbase JM 11.31) reached Steam Big Picture sign-in and downloaded
+2 -2
View File
@@ -1,2 +1,2 @@
GAMESCOPE_TAG=gamescope-3.16.29-p5
GAMESCOPE_SHA256=188144e5564e020d0bc485a1f4f90e1c5fd61d0d1d6dd29db21e8b019036a5c6
GAMESCOPE_TAG=gamescope-3.16.29-p6
GAMESCOPE_SHA256=b34294a5c5358b8d0bb7a2d7d45c92595dad6d8257eacc5ef36b980b8b7931f0
@@ -656,9 +656,9 @@ BUSCONF
[ "${BL_STEAM_UI:-}" = desktop ] && _bl_ui=()
# Software compatibility mode: CEF and Steam use CPU frames through Xwayland,
# inside either the desktop or the software Gamescope session.
_bl_cef=(-cef-force-gpu -cef-use-gl=angle -cef-use-angle=vulkan)
_bl_cef=(-cef-force-gpu -cef-ozone-platform=x11 -cef-use-gl=angle -cef-use-angle=vulkan)
if [ "${BL_STEAM_SOFTWARE:-0}" = 1 ]; then
_bl_cef=(-cef-disable-gpu -cef-disable-gpu-compositing)
_bl_cef=(-cef-disable-gpu -cef-disable-gpu-compositing -cef-ozone-platform=x11)
export LIBGL_ALWAYS_SOFTWARE=1 GALLIUM_DRIVER=llvmpipe
export MESA_LOADER_DRIVER_OVERRIDE=swrast SDL_RENDER_DRIVER=software SDL_VIDEODRIVER=x11
echo "== steam: software rendering requested"
@@ -722,7 +722,7 @@ BUSCONF
done
) &
fi
echo "== steam args: ${_bl_ui[*]} -clientbeta $steam_channel -no-cef-sandbox -cef-ozone-platform=x11 ${_bl_cef[*]} $*"
echo "== steam args: ${_bl_ui[*]} -clientbeta $steam_channel -no-cef-sandbox ${_bl_cef[*]} $*"
# An update that cannot install asks for a restart (rc=42) every time; the count is capped so a
# session can never again loop in silence, which reads as a menu opening and closing by itself.
steam_updates=0
@@ -769,7 +769,7 @@ BUSCONF
fi
step "starting the Steam client${BL_STEAM_UI:+ ($BL_STEAM_UI UI)}"
"$steam_root/steamrtarm64/steam" "${_bl_ui[@]}" -clientbeta "$steam_channel" \
-no-cef-sandbox -cef-ozone-platform=x11 "${_bl_cef[@]}" "$@"
-no-cef-sandbox "${_bl_cef[@]}" "$@"
rc=$?
echo "== steam exited rc=$rc"
collect_steam_logs