Skip to content

Vprotex - #699

Merged
techomancer merged 3 commits into
mainfrom
vprotex
Nov 13, 2026
Merged

techomancer merged 3 commits into
mainfrom
vprotex

Conversation

@techomancer

Copy link
Copy Markdown
Owner

No description provided.

techomancer and others added 3 commits November 12, 2026 21:57
- dma_fields: take the selected level's packing when word 4's field does
  not fit word 4's own pixel. sgiquake1 uploads RGBA4/RGB5_A1 levels with
  a 4-byte field in a 2-byte pixel; since fa2c91c those packed 4-byte
  fields into 2-byte texels and its textures turned to noise.
- Image header bit 10 is GL_UNPACK_SWAP_BYTES; reverse each element.
- 5_6_5 arrives as type 0xa or 0xc by internal format; decode both with
  the full 9-bit code, and add BGRA 8_8_8_8_REV (0x50) with its alpha.

piglit texture-packed-formats now passes; the texture set and a 101-shot
format sweep are identical on the CPU and wgpu raster units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebuilds after an edit take one to three minutes instead of about nine,
at about 4% guest speed. Measure performance with --release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line editor puts the terminal in raw mode for each readline and only
restores it when the call returns or the editor is dropped. Most exits
(monitor quit, signals, guest power-off, CI quit, window close, panic)
end the process from another thread while readline is still waiting,
so the shell was left with no echo and no line editing.

Save the terminal state (termios on Unix, console modes on Windows)
before the editor first takes it over, and restore it in exit_process,
at the end of main after the window closes, and in the panic hook.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@techomancer
techomancer merged commit f0914a0 into main Nov 13, 2026
8 of 9 checks passed
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