Skip to content

Feature/mpeg decoder#120

Merged
ran-j merged 31 commits into
mainfrom
feature/mpeg-decoder
Jun 27, 2026
Merged

Feature/mpeg decoder#120
ran-j merged 31 commits into
mainfrom
feature/mpeg-decoder

Conversation

@ran-j

@ran-j ran-j commented May 19, 2026

Copy link
Copy Markdown
Owner

No description provided.

@ran-j ran-j marked this pull request as ready for review June 16, 2026 20:47
@ran-j ran-j merged commit 8c8a97a into main Jun 27, 2026
6 checks passed
@ran-j ran-j deleted the feature/mpeg-decoder branch June 27, 2026 00:04
smmathews added a commit to smmathews/PS2Recomp that referenced this pull request Jul 3, 2026
Brings in GS rasterizer rework (ran-j#132), semaphore sid-on-success returns
(ran-j#136), runtime fixups (ran-j#138, ran-j#139), and the MPEG decoder (ran-j#120).

Conflict resolutions (8 files) followed three principles: the fiber
scheduler replaces the per-thread host model wherever the two collided;
upstream wins on guest-visible semantics; both sides' tests are kept.
Notable adaptations:

- Sync.cpp/Thread.cpp: semaphore syscalls keep ran-j#136's sid-on-success
  contract; our older scheduler tests updated to it (one retried
  "until KE_OK" and would loop forever against sid returns).

- Guest identity now keys off g_currentThreadId != -1 rather than
  fiber-ness in WaitSema/WaitEventFlag/SleepThread: upstream's model (and
  its ran-j#136 tests) treats any host thread carrying a guest tid as a guest
  thread -- it gets ThreadInfo wait bookkeeping, appears in wait lists,
  and is targetable by ReleaseWaitThread/WakeupThread. Parking remains
  fiber-only; borrowed workers (tid -1) are unaffected.

- Upstream's new debug panel referenced old-threading-model introspection
  (guestExecutionWaiterCountForTesting, yieldGuestExecutionAfterWake);
  those references are removed with the model they described.

Full suite: 347/347 on ucontext (3 runs) and pthread backends.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant