Commit graph

86 commits

Author SHA1 Message Date
libretroadmin
631f0fb31b Timing events: reject events already due, test event state validation
States are saved with every due event already run, so each event in one
is still pending. A loaded event with a downcount of zero or below never
runs: the CPU does not advance and retro_run() never returns. Such
events are rejected.

The new eventstate suite patches timing event records over an idle-loop
ROM: events already due or that would run with negative elapsed time,
and a GPU CRTC event postponed past a CPU slice or with another period
or interval, must be rejected, in-range ones loaded at the lowest and
highest clocks, and real states saved across a run at both clocks load
again. The frontend takes the clock from FE_OVERCLOCK. It runs in all
three CI jobs.
2026-10-24 03:16:52 +02:00
libretroadmin
7e1163a019 MDEC: reject unknown and orphaned states, test state validation
A loaded MDEC state must name a known state, and a block write-out is
only in progress with its copy-out scheduled; anything else would wedge
the decoder. The new mdecstate suite loads patched MDEC sections over an
idle-loop ROM: table commands short of parameters, unknown states and an
unscheduled write-out must be rejected, valid pending table commands
loaded, and every state must save again. It runs in all three CI jobs.
2026-10-24 02:40:48 +02:00
libretroadmin
3960094a3f Vulkan: one queue for a device made without a surface
With no surface to present to there is no present queue family, but the
device was still created with a second queue on family index "count",
past the last family - invalid, and a validation error on every frontend
that creates the device without a surface. Without one, only the
graphics queue is created.

tests/harness/vk_negotiate.c is a frontend that negotiates the Vulkan
device with the core as RetroArch does, under the validation layer, and
the vulkan suite in tests/run_tests.sh runs it on the hardware renderer.
CI runs it on lavapipe.
2026-10-19 21:25:52 +02:00
libretroadmin
dd4805619b Add headless regression tests and a GitHub workflow running them
tests/run_tests.sh builds small MIPS programs with clang that run in
place of the BIOS, and a headless libretro frontend that boots the core
with them:
- mdec: decodes macroblock streams through DMA in both channel orders,
  24- and 15-bit, with and without AC coefficients, and through CPU reads,
  and compares the output with tests/mdec_decode.expected.
- polyline: draws poly-lines longer than the core buffers, flat and
  shaded, opaque and blended, and compares VRAM with
  tests/gpu_polyline.expected.
- regfuzz: pokes the GPU, DMA, CD-ROM, SPU, MDEC, timer and SIO registers
  with pseudo-random values, with a small disc inserted.
- statefuzz: loads corrupted save states into a fuzzed system.

The workflow runs them on a release build with every CPU mode, under
ASan and UBSan, and under TSan with the GPU and CD-ROM threads.
2026-10-08 15:32:31 +02:00
DarthMew
20ed86f7e9 Remove unused GitHub workflows 2022-03-02 23:30:51 +01:00
Jean-André Santoni
d29d64e485 Fix CD 2021-08-01 13:06:05 +07:00
Jean-André Santoni
4e702f78f8 Use master branch 2021-08-01 13:02:25 +07:00
Jean-André Santoni
f768e1e28f Add CD for OSX and Windows 2021-08-01 12:54:25 +07:00
Jean-André Santoni
0ebceb554c Setup our CD 2021-08-01 12:48:04 +07:00
Connor McLaughlin
36bad69b31 CI: Don't try to make UWP app bundle on pull requests 2021-07-17 14:06:28 +10:00
Connor McLaughlin
c3cbe3b969 CI: Enable UWP/AppX releases 2021-07-11 16:47:21 +10:00
Connor McLaughlin
172c522a73 CI: Fix incorrect auto-updater arm64 filename 2021-06-30 20:20:18 +10:00
Connor McLaughlin
b5af2b25cf CI: Collapse del commands 2021-06-12 22:43:04 +10:00
Connor McLaughlin
52673743e1
CI: Fix workflow failure 2021-06-09 13:12:04 +10:00
Connor McLaughlin
64560d09fc Update CI scripts 2021-06-08 16:39:52 +10:00
Connor McLaughlin
4435851276 CI: Generate app bundles 2021-06-06 15:53:36 +10:00
Connor McLaughlin
950b81861b CI: Revert previous commit and fix underlying issue 2021-06-04 16:49:34 +10:00
Connor McLaughlin
1269a1e091 CI: Remove macOS builds completely
Random failures, and I don't have a machine to debug it on.
2021-06-04 14:22:30 +10:00
Connor McLaughlin
5e0e6c71bf CI: Improve naming of libretro binaries 2021-05-20 12:25:08 +10:00
Connor McLaughlin
f10134251b CI: Add play store builder 2021-05-20 12:19:26 +10:00
Connor McLaughlin
f98f9fcd0c CI: Fix libretro dll for Windows 2021-05-20 12:19:23 +10:00
Connor McLaughlin
94cb847e21 CI: Re-add libretro builds 2021-05-20 12:18:55 +10:00
Connor McLaughlin
d4214211a2
Merge pull request #2028 from j8r/add-appstream-metadata-file
Add AppStream metadata file
2021-05-03 03:20:03 +10:00
Julien Reichardt
4bd1161ac9 Split appimage script and distribution files 2021-05-01 17:48:26 +02:00
Connor McLaughlin
25426a90e7 CI: Don't publish Mac builds 2021-05-01 13:37:42 +10:00
Connor McLaughlin
924756860e HostDisplay: Support refresh rate queries on all platforms except Mac 2021-04-03 02:53:28 +10:00
Connor McLaughlin
adae4e1e5b
CI: Fix build path for Qt on Mac (#1740) 2021-03-04 13:08:16 +10:00
Connor McLaughlin
9a8cb97875 CI: Add missing Mac build to preview release 2021-03-01 00:54:32 +10:00
Connor McLaughlin
4eace11a8b Enable building with RetroAchievements by default 2021-02-28 19:04:40 +10:00
Connor McLaughlin
413e52b38d CI: Use Ubuntu 20.04 for AppImage builds 2021-02-19 01:37:56 +10:00
Connor McLaughlin
1b1a5996ec CI: Enable DRM/KMS and Wayland for AppImage builds 2021-02-08 00:45:37 +10:00
Connor McLaughlin
2dabccffc6 CI: Package NoGUI AppImage on Linux instead of SDL 2021-01-31 18:11:56 +10:00
Connor McLaughlin
7d036d6fee CI: Provide Windows build symbols as separate file 2021-01-31 17:00:57 +10:00
Connor McLaughlin
419726f4cc Remove libretro core - core will now be maintained by libretro
libretro have agreed to take over maintenance of the core.

Please see their fork at https://github.com/libretro/duckstation if you
wish to continue to use it.
2021-01-08 01:37:59 +10:00
Guillaume Bouchard
f30addc70d Use gtk3 for nativefiledialog
Rational: gtk2 is not maintained anymore and the change was simple.

- Update of nativefiledialog/CMakeLists.txt in order to detect and use
  gtk3
- Updated a few files referencing gtk2, especially:
  - github workflow: I tested that the apt-get update works on ubuntu
    18.03 in a docker container
  - Readme.

This was tested in the following nixpkgs PR: https://github.com/NixOS/nixpkgs/pull/107878
2020-12-29 15:13:43 +01:00
Connor McLaughlin
e3ce0530bf Revert "CI: Stop building libretro cores"
This reverts commit 1a6a14fcd4.
2020-12-27 02:21:16 +10:00
Connor McLaughlin
1a6a14fcd4 CI: Stop building libretro cores
Apparently libretro want to do this themselves now?
2020-12-27 00:50:08 +10:00
Connor McLaughlin
b468f643fb CI: Remove unused scripts 2020-12-25 13:53:28 +10:00
Connor McLaughlin
e5495b43c6 CI: Rename beta builds to preview builds, stable to development 2020-12-25 13:53:28 +10:00
Connor McLaughlin
3ab017c32e CI: Set prerelease tag only on beta release 2020-12-22 02:40:27 +10:00
Connor McLaughlin
80ce7bde26 CI: Generate master->beta, stable->latest releases 2020-12-22 02:18:15 +10:00
Albert Liu
5e9a4f9bc6 Update bug report issue template 2020-12-17 22:53:48 -08:00
Connor McLaughlin
ea355c20ad CI: Fix Windows/ARM64 build 2020-11-22 14:22:01 +10:00
Connor McLaughlin
57c1e54a54 CI: Add Windows ARM64 builds 2020-11-22 14:05:37 +10:00
Connor McLaughlin
3797d2acbc CI: Generate armv7 libretro cores 2020-11-22 01:24:26 +10:00
Connor McLaughlin
2ee2207106 CI: Output Android apk as duckstation-android.apk 2020-11-22 01:24:25 +10:00
Connor McLaughlin
83db685376
Update rolling-release.yml 2020-11-19 01:09:29 +10:00
Connor McLaughlin
bb4a7e0e78 CI: Use fixed version of sign-android-release 2020-11-15 00:20:16 +10:00
Connor McLaughlin
82e19f7188 Build: Set macOS deployment target to 10.14 2020-10-31 14:29:11 +10:00
Albert Liu
a4ece3e1b7 CI: Drop Linux runner to Ubuntu 18.04
This lowers the AppImage glibc version requirement.
2020-10-01 18:19:46 -07:00