Skip to content

hk: lower image view minimum LOD only when enabled - #464

Merged
RyanTheTide merged 1 commit into
aurora-wipfrom
j716c/t2-min-lod
Nov 19, 2026
Merged

RyanTheTide merged 1 commit into
aurora-wipfrom
j716c/t2-min-lod

Conversation

@erikwb

@erikwb erikwb commented Nov 19, 2026 •

Copy link
Copy Markdown

Applications may run with minimum-LOD emulation available while leaving the Vulkan feature disabled. Include the enabled feature in the shader key and skip the lowering when a pipeline cannot use it. Keep the lowering available to shader objects.

Tested on an M5 Max (G17C). All eight minimum-LOD CTS cases passed with emulation enabled.

Hardware benchmark

Cyberpunk 2077 2.5 on a 40-core Apple M5 Max (J716c, 128 GB), Linux 7.3.0-ewb234+ on AC. Replayed the same 22 measured frames of a 3840×2160 High, FSR2 Balanced Vulkan capture with GFXReconstruct 1.0.5-dev (ccbbb1c). The game capture needs #450, #451 and #452 on 57df4db849a; the unmodified public base stops compiling its MRT fragment epilog. Only the feature differs within each pair.

PR parent 57df4db849aa, proposed feature 37a22c52d6b9. Tested integration commits 92c9f438a005 and f796ff13ceae. Build the control by cherry-picking the game prerequisites in order onto 57df4db849a, then cherry-pick the feature for the candidate. Both builds used AArch64 release Honeykrisp.

Median of three runs Control Proposed Change
Replay FPS 13.285 12.948 -2.54%
Vertex ms/frame 4.390 4.397 +0.15%
Fragment ms/frame 12.700 12.692 -0.06%
Compute ms/frame 25.255 25.296 +0.16%

Run order was control/proposed, proposed/control, control/proposed. Replay throughput varied from 11.86 to 13.65 FPS across these short runs. Stage times use the replay process's DRM engine nanoseconds divided by the number of frames. Each engine is reported separately. The game’s full native-resolution T2 benchmark measures a different workload.

The short replay measured 2.54% lower median throughput for this feature in isolation. This sample does not establish a standalone throughput gain.

Reproduction and raw output

Use the GFXReconstruct replay tool with an optimized 24-frame capture of the benchmark. The private game asset hash was 2c74dea133fc0067d4a51ef3dafa699388ea0b8d132ee86300cca38b6842600f. For each build, run the same command under a 4 KiB user page personality:

VK_DRIVER_FILES="$icd" DRIRC_CONFIGDIR="$drirc" MESA_SHADER_CACHE_DIR="$cache" \
userpages 4k gfxrecon-replay-gputime -m rebind --log-level error \
  --measurement-frame-range 2-24 --flush-measurement-range \
  --measurement-file frames.json --omit-pipeline-cache-data scene-optimized.gfxr
round,build,frames,fps,vertex_ms_per_frame,fragment_ms_per_frame,compute_ms_per_frame
1,control,22,13.28523000,4.45444000,12.72115155,25.34251241
1,proposed,22,13.04824863,4.38527214,12.69233073,25.06547045
2,control,22,11.85683279,4.39042777,12.68772927,25.22509914
2,proposed,22,12.94815313,4.39685086,12.67773977,25.32640659
3,control,22,13.64982101,4.38108223,12.70010800,25.25460186
3,proposed,22,12.22999154,4.40690441,12.70631427,25.29616259

Reviewed with sol-loop: 1 round with GPT-6.2 Sol. Sol verdict: approved.

Created with GPT-6.2 Astra in Codex.

Developed with Claude Code.
Signed-off-by: Erik Bourget <erik@ebourget.net>
@RyanTheTide
RyanTheTide merged commit d52c57a into aurora-wip Nov 19, 2026
@RyanTheTide
RyanTheTide deleted the j716c/t2-min-lod branch November 27, 2026 13:20
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.

2 participants