]> gitweb.unchartedbackwaters.co.uk Git - francis/winuae.git/commit
od-unix: add Scale2x GLSL scaler to the shader pipeline
authorStefan Reinauer <stefan.reinauer@coreboot.org>
Fri, 12 Jun 2026 16:02:54 +0000 (09:02 -0700)
committerStefan Reinauer <stefan.reinauer@coreboot.org>
Tue, 7 Jul 2026 20:59:15 +0000 (13:59 -0700)
commita71132b90a2562d7e3a66515db04d1c086b2c242
tree2b584b18aa0f577208d75317173ef0d8fde959f4
parente29606e2e31d2a3a5613f4decfce12bd1afd1bf5
od-unix: add Scale2x GLSL scaler to the shader pipeline

The Filter page's filter selector only offered "None" (GitHub issue
#4): the generic gfx_filter config option cannot carry named shaders
outside the Windows Direct3D path, and the Unix GL presenter had no
scaler stage.

Carry the selection as a new unix.gfx_shader target option (parsed and
saved in od-unix/config.cpp, no generic code changes) and implement
Scale2x/EPX as a stage in the GL presenter's fragment shader, selected
through a uniform. The scaler forces nearest-neighbour sampling, runs
before the color/scanline/noise stages, and applies to the emulation
frame only, leaving the status line untouched. The launcher's Filter
selector offers Scale2x when the shader pipeline is available, and the
value round-trips through the config (covered by the roundtrip smoke).
README_unix.md
od-unix/config.cpp
od-unix/qt/launcher.cpp
od-unix/video.h
od-unix/video_sdl.cpp
tools/unix-smoke-config-roundtrip.sh