fix(vk): bind a supported depth-comparison image view #3032

Merged
HumanBean merged 4 commits from futondestroyer/Longshot:codex/depth-comparison-format into main 2026-12-03 05:40:31 +00:00
Member

Summary

In Deku Tree and Water Temple, the C++ Vulkan renderer can bind an R32_SFLOAT image view to a shader that samples with a depth comparison. The RTX 4070 reports VUID 06479. Open Deku Tree with Khronos synchronization validation on current main to see the error.

Both ordinary and handle-table descriptors now check the resolved view format, including cached views. Unsupported or missing comparison views use a legal null descriptor or a cleared D32/D16 view of the requested type on hardware without null descriptors. The 1D and 2D families are checked separately against the device's dimensions, usage and format capabilities. Devices that reject the six-layer cube image can use a separate ordinary 2D/2D-array depth image. Later recording starts retry transient allocation and view failures and retain resources that are already ready. Review guard_depth_comparison, build_descriptors and make_depth_family in gpu/vk/vk_draw.cpp.

Testing

Tested:

  • Windows, RTX 4070 (12 GB), NVIDIA 621.01. Live Deku Tree at a matched 1920×1080 checkpoint, using the same ABI 56 host and local save. Khronos synchronization validation reported 30 depth-comparison errors on 455b0837 and zero Vulkan errors on 2cdd2d6c.

  • A diagnostic relink of 2cdd2d6c disabled null descriptors and injected a single 1D image-view failure. The real driver created the D32 1D-array fallback and created the missing D32 1D view after retry. The relink reached the same Deku Tree checkpoint with zero Vulkan errors.

  • Six focused checks passed. The fixture covers real source snippets for ordinary and handle-table descriptor construction. Independently removing either guard trips its emitted-fallback assertion. It also checks that a transient failure retries and preserves successful Vulkan objects. Exact Windows llvm-mingw renderer builds passed on the base and candidate.

  • The strict Windows suite returned 694 passed, 198 failed and 49 skipped. All failing checks also failed in their matched base controls. See the named failures below.

  • Follow-up d39d1bb5: the regression fails on 2cdd2d6c when the device rejects only cube-compatible depth images and passes with the ordinary 2D fallback. Six focused Windows checks passed. Matching live Deku Tree runs used a production renderer relink and a diagnostic relink with null descriptors disabled and cube depth support deliberately rejected. The driver created single-layer 2D and 2D-array views. Both arms completed with zero Vulkan errors.

  • The repository's Windows UTF-8 path test passed on d39d1bb5 with llvm-mingw. The game manifest selected code page 65001 and the Unicode path round-tripped. The control without the manifest reproduced the code-page 1252 failure.

Still to test:

  • Native Linux, exact d39d1bb5 in a UTF-8 checkout path (by hand). Build the renderer and verify its exported ABI. Hosted Linux renderer builds with and without FSR 4 passed on 2cdd2d6c. This checkout/export test and physical gameplay coverage are separate.
  • Tier 1 gameplay (by hand). Compare the same Deku Tree checkpoint on AMD RX 6000–9000 on Windows and Mesa RADV Linux, NVIDIA RTX on native Linux, and Steam Deck on SteamOS. With Khronos synchronization validation active, confirm that the candidate exercises the comparison path and that VUID 06479 is absent. Record any other errors and omissions separately. For hardware without nullDescriptor, verify the actual device feature and the fallback it uses. Check frame pacing at the same pose with validation off.
  • Guide synthetic fixture and owner review (by hand). settings-graphics.png reports the same nine stale reviewed inputs on the exact base and candidate. Use the Linux no-game screenshot fixture and have its rendered output reviewed before updating the Guide fingerprints.

Measurements

Verdict: The live comparison clears the validation errors.

These timings measured 2cdd2d6c on a driver with null descriptors enabled. The follow-up changes only fallback provisioning after the no-null gate. Timing held the same pose at 1920×1080, uncapped, with V-Sync, frame generation and validation off. The alternating arms sampled rendered frames for 12 seconds after a five-second warm-up. The 0.30 FPS change in the medians is smaller than the spread between repeats.

Measurement Before: main @ 455b0837 After: this PR @ 2cdd2d6c
Depth-comparison VUID 06479 reports, validation on 30 0
Rendered FPS, median of two 109.25 109.55
Individual timing runs, FPS 112.4, 106.1 112.1, 107.0

Risks

Shaders previously given unsupported views see a cleared, dimension-matched depth fallback or a legal null descriptor. If neither is available, the renderer declines that descriptor set. Revert the change to restore the previous binding behaviour.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A fix: a game-free test that fails on main and passes here.
  • A check under tests/ that reads changed source is updated.
  • AI assistance recorded with Assisted-by:.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested.
  • Approved in review, every comment answered.
  • CI passes on the head.
Strict game-free failures also present on the Windows base
  • tests/test_astc_reuse.py
  • tests/test_astc_upload_chunking.py
  • tests/test_async_astc_upload_chunks.py
  • tests/test_audio_in.py
  • tests/test_audio_output_menu.py
  • tests/test_auto_handheld.py
  • tests/test_bind_memo.py
  • tests/test_blocks_at_start.py
  • tests/test_box_light_reuse.py
  • tests/test_bug_report.py
  • tests/test_builder_channel.py
  • tests/test_camera_centering.py
  • tests/test_camera_speed.py
  • tests/test_capture_copy_helpers.py
  • tests/test_cbuf_table_extent.py
  • tests/test_compute_warm_apart.py
  • tests/test_control_picture.py
  • tests/test_coverage_run.py
  • tests/test_crash_record.py
  • tests/test_crt_options.py
  • tests/test_cv_handoff_threads.py
  • tests/test_cv_signal_race.py
  • tests/test_dev_ab.py
  • tests/test_dev_build.py
  • tests/test_dev_migrate.py
  • tests/test_dev_packs.py
  • tests/test_dev_update.py
  • tests/test_dlss_actor.py
  • tests/test_dlss_checks.py
  • tests/test_dlss_pre_bloom.py
  • tests/test_draw_stream_visibility.py
  • tests/test_drawn_page_map.py
  • tests/test_drawn_writeback.py
  • tests/test_drive_target.py
  • tests/test_driver_faults.py
  • tests/test_dynres_sites.py
  • tests/test_early_split_before_draw.py
  • tests/test_fallback_lanes.py
  • tests/test_fallback_pipeline_state.py
  • tests/test_fallback_size_policy.py
  • tests/test_fg_scale_sharpen.py
  • tests/test_fixed_scale_sites.py
  • tests/test_flat_map.py
  • tests/test_floor_carry_step.py
  • tests/test_fps_overlay_order.py
  • tests/test_fps_stats.py
  • tests/test_frame_rate_cap_step.py
  • tests/test_frame_whole.py
  • tests/test_framegen_auto.py
  • tests/test_framegen_hdr.py
  • tests/test_framegen_resources.py
  • tests/test_free_view_anchor.py
  • tests/test_fs_path_utf8.py
  • tests/test_fsr_image_retirement.py
  • tests/test_fsr_uniform_ownership.py
  • tests/test_game_boundary.py
  • tests/test_game_layout.py
  • tests/test_gpu_choice.py
  • tests/test_high_fps_fixes.py
  • tests/test_horse_jump_step.py
  • tests/test_hud_layout.py
  • tests/test_image_reaper_threads.py
  • tests/test_image_view_retry.py
  • tests/test_import_hold.py
  • tests/test_import_reach.py
  • tests/test_import_span.py
  • tests/test_import_windows.py
  • tests/test_input_background.py
  • tests/test_jobs_wait_runs_queued.py
  • tests/test_jump_takeoff_step.py
  • tests/test_keyboard_menu_option.py
  • tests/test_keyboard_option.py
  • tests/test_late_fix_build.py
  • tests/test_lifter.py
  • tests/test_linux_pressure.py
  • tests/test_loaded_modules_drop.py
  • tests/test_log_batch.py
  • tests/test_log_levels.py
  • tests/test_log_redact.py
  • tests/test_loop_step.py
  • tests/test_lower_atomg_cas.py
  • tests/test_lower_end_at_closing_branch.py
  • tests/test_lower_immediate_not_register.py
  • tests/test_lower_imnmx_wide_immediate.py
  • tests/test_lower_isberd_output.py
  • tests/test_lower_ldg_uniform_order.py
  • tests/test_lower_lea_hi_constant.py
  • tests/test_lower_r2ur_one_register.py
  • tests/test_lower_suld_1d.py
  • tests/test_lower_tld_ms.py
  • tests/test_mask_history_retire.py
  • tests/test_menu_env_on.py
  • tests/test_menu_hooks.py
  • tests/test_menu_keys.py
  • tests/test_menu_model.py
  • tests/test_menu_module_slots.py
  • tests/test_menu_modules.py
  • tests/test_menu_mouse_scroll.py
  • tests/test_menu_restart.py
  • tests/test_menu_rows_model.py
  • tests/test_menu_sections.py
  • tests/test_mirror_bookkeeping.py
  • tests/test_mirror_inherit.py
  • tests/test_mirror_trim.py
  • tests/test_mods_list.py
  • tests/test_mouse_native.py
  • tests/test_movement_speed.py
  • tests/test_movie_frame_count.py
  • tests/test_ocarina_wait.py
  • tests/test_ocb_hold.py
  • tests/test_oot_barrier.py
  • tests/test_oot_camera_clearance.py
  • tests/test_oot_cloth.py
  • tests/test_oot_cloth_60.py
  • tests/test_oot_cloth_time.py
  • tests/test_oot_damage.py
  • tests/test_oot_fov.py
  • tests/test_oot_heap_retry.py
  • tests/test_oot_jitter.py
  • tests/test_oot_shadow.py
  • tests/test_oot_shadow_fit.py
  • tests/test_oot_state_tap.py
  • tests/test_oot_transition_autosave.py
  • tests/test_oot_voice_option.py
  • tests/test_oot_wide_bubble.py
  • tests/test_oot_wide_save_picture.py
  • tests/test_option_ids.py
  • tests/test_parity_gates.py
  • tests/test_pass_barrier.py
  • tests/test_pcache_stamp.py
  • tests/test_perf_send.py
  • tests/test_player_update_sites.py
  • tests/test_prepare_seed_stamp.py
  • tests/test_prepare_stall.py
  • tests/test_prepare_workers.py
  • tests/test_present_acquire_ahead.py
  • tests/test_present_image_free.py
  • tests/test_present_source_crop.py
  • tests/test_profile_symbols.py
  • tests/test_program_cache_cleanup.py
  • tests/test_program_cache_one_variant.py
  • tests/test_program_cache_reader.py
  • tests/test_program_cache_store_record.py
  • tests/test_program_record_head.py
  • tests/test_push_state.py
  • tests/test_quick_pipelines.py
  • tests/test_readback_timeout_reuse.py
  • tests/test_recorder_sync.py
  • tests/test_recording_admission.py
  • tests/test_report_words.py
  • tests/test_reshade_fx.py
  • tests/test_run_all_junit.py
  • tests/test_run_all_mingw.py
  • tests/test_saved_turn_rate.py
  • tests/test_scarecrow_timing.py
  • tests/test_scene_format.py
  • tests/test_screensaver.py
  • tests/test_seed_kept_loaded.py
  • tests/test_seed_reader.py
  • tests/test_settings_table.py
  • tests/test_skip_code.py
  • tests/test_song_note_cue.py
  • tests/test_sound_held_frames.py
  • tests/test_sparse_bc_usage.py
  • tests/test_sprint.py
  • tests/test_staging_burst.py
  • tests/test_startup_progress.py
  • tests/test_switch_table.py
  • tests/test_taau_env_lookup.py
  • tests/test_target_overlap.py
  • tests/test_target_retention.py
  • tests/test_temporal_present_bandwidth.py
  • tests/test_tex_compact.py
  • tests/test_tex_desc_memo.py
  • tests/test_tex_spans_once_a_present.py
  • tests/test_text_keyboard_policy.py
  • tests/test_text_speed.py
  • tests/test_title_card_sites.py
  • tests/test_ub_gap.py
  • tests/test_ub_snapshot_default.py
  • tests/test_ub_snapshot_gpu_writes.py
  • tests/test_upscale_fallback.py
  • tests/test_upscale_independent.py
  • tests/test_upscaler_round_trip.py
  • tests/test_utf8_paths.py
  • tests/test_vram_compact.py
  • tests/test_water_substeps.py
  • tests/test_wb_diff_stale_shadow.py
  • tests/test_wb_learn.py
  • tests/test_wb_pages.py
  • tests/test_wb_pending_capture.py
  • tests/test_web_floor_steps.py
  • tests/test_wide_sites.py
  • tests/test_wide_ui.py
  • tests/test_windows_display_startup.py
  • tests/test_windows_on_linux.py
  • tests/test_wrote_regions.py
  • tests/test_xinput_thread.py
## Summary In Deku Tree and Water Temple, the C++ Vulkan renderer can bind an R32_SFLOAT image view to a shader that samples with a depth comparison. The RTX 4070 reports VUID 06479. Open Deku Tree with Khronos synchronization validation on current `main` to see the error. Both ordinary and handle-table descriptors now check the resolved view format, including cached views. Unsupported or missing comparison views use a legal null descriptor or a cleared D32/D16 view of the requested type on hardware without null descriptors. The 1D and 2D families are checked separately against the device's dimensions, usage and format capabilities. Devices that reject the six-layer cube image can use a separate ordinary 2D/2D-array depth image. Later recording starts retry transient allocation and view failures and retain resources that are already ready. Review `guard_depth_comparison`, `build_descriptors` and `make_depth_family` in `gpu/vk/vk_draw.cpp`. ## Testing **Tested:** - Windows, RTX 4070 (12 GB), NVIDIA 621.01. Live Deku Tree at a matched 1920×1080 checkpoint, using the same ABI 56 host and local save. Khronos synchronization validation reported 30 depth-comparison errors on `455b0837` and zero Vulkan errors on `2cdd2d6c`. - A diagnostic relink of `2cdd2d6c` disabled null descriptors and injected a single 1D image-view failure. The real driver created the D32 1D-array fallback and created the missing D32 1D view after retry. The relink reached the same Deku Tree checkpoint with zero Vulkan errors. - Six focused checks passed. The fixture covers real source snippets for ordinary and handle-table descriptor construction. Independently removing either guard trips its emitted-fallback assertion. It also checks that a transient failure retries and preserves successful Vulkan objects. Exact Windows llvm-mingw renderer builds passed on the base and candidate. - The strict Windows suite returned 694 passed, 198 failed and 49 skipped. All failing checks also failed in their matched base controls. See the named failures below. - Follow-up `d39d1bb5`: the regression fails on `2cdd2d6c` when the device rejects only cube-compatible depth images and passes with the ordinary 2D fallback. Six focused Windows checks passed. Matching live Deku Tree runs used a production renderer relink and a diagnostic relink with null descriptors disabled and cube depth support deliberately rejected. The driver created single-layer 2D and 2D-array views. Both arms completed with zero Vulkan errors. - The repository's Windows UTF-8 path test passed on `d39d1bb5` with llvm-mingw. The game manifest selected code page 65001 and the Unicode path round-tripped. The control without the manifest reproduced the code-page 1252 failure. **Still to test:** - Native Linux, exact `d39d1bb5` in a UTF-8 checkout path (by hand). Build the renderer and verify its exported ABI. Hosted Linux renderer builds with and without FSR 4 passed on `2cdd2d6c`. This checkout/export test and physical gameplay coverage are separate. - Tier 1 gameplay (by hand). Compare the same Deku Tree checkpoint on AMD RX 6000–9000 on Windows and Mesa RADV Linux, NVIDIA RTX on native Linux, and Steam Deck on SteamOS. With Khronos synchronization validation active, confirm that the candidate exercises the comparison path and that VUID 06479 is absent. Record any other errors and omissions separately. For hardware without `nullDescriptor`, verify the actual device feature and the fallback it uses. Check frame pacing at the same pose with validation off. - Guide synthetic fixture and owner review (by hand). `settings-graphics.png` reports the same nine stale reviewed inputs on the exact base and candidate. Use the Linux no-game screenshot fixture and have its rendered output reviewed before updating the Guide fingerprints. ## Measurements **Verdict:** The live comparison clears the validation errors. These timings measured `2cdd2d6c` on a driver with null descriptors enabled. The follow-up changes only fallback provisioning after the no-null gate. Timing held the same pose at 1920×1080, uncapped, with V-Sync, frame generation and validation off. The alternating arms sampled rendered frames for 12 seconds after a five-second warm-up. The 0.30 FPS change in the medians is smaller than the spread between repeats. | Measurement | Before: main @ 455b0837 | After: this PR @ 2cdd2d6c | |---|---:|---:| | Depth-comparison VUID 06479 reports, validation on | 30 | 0 | | Rendered FPS, median of two | 109.25 | 109.55 | | Individual timing runs, FPS | 112.4, 106.1 | 112.1, 107.0 | ## Risks Shaders previously given unsupported views see a cleared, dimension-matched depth fallback or a legal null descriptor. If neither is available, the renderer declines that descriptor set. Revert the change to restore the previous binding behaviour. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A fix: a game-free test that fails on `main` and passes here. - [x] A check under `tests/` that reads changed source is updated. - [x] AI assistance recorded with `Assisted-by:`. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head. <details> <summary>Strict game-free failures also present on the Windows base</summary> - `tests/test_astc_reuse.py` - `tests/test_astc_upload_chunking.py` - `tests/test_async_astc_upload_chunks.py` - `tests/test_audio_in.py` - `tests/test_audio_output_menu.py` - `tests/test_auto_handheld.py` - `tests/test_bind_memo.py` - `tests/test_blocks_at_start.py` - `tests/test_box_light_reuse.py` - `tests/test_bug_report.py` - `tests/test_builder_channel.py` - `tests/test_camera_centering.py` - `tests/test_camera_speed.py` - `tests/test_capture_copy_helpers.py` - `tests/test_cbuf_table_extent.py` - `tests/test_compute_warm_apart.py` - `tests/test_control_picture.py` - `tests/test_coverage_run.py` - `tests/test_crash_record.py` - `tests/test_crt_options.py` - `tests/test_cv_handoff_threads.py` - `tests/test_cv_signal_race.py` - `tests/test_dev_ab.py` - `tests/test_dev_build.py` - `tests/test_dev_migrate.py` - `tests/test_dev_packs.py` - `tests/test_dev_update.py` - `tests/test_dlss_actor.py` - `tests/test_dlss_checks.py` - `tests/test_dlss_pre_bloom.py` - `tests/test_draw_stream_visibility.py` - `tests/test_drawn_page_map.py` - `tests/test_drawn_writeback.py` - `tests/test_drive_target.py` - `tests/test_driver_faults.py` - `tests/test_dynres_sites.py` - `tests/test_early_split_before_draw.py` - `tests/test_fallback_lanes.py` - `tests/test_fallback_pipeline_state.py` - `tests/test_fallback_size_policy.py` - `tests/test_fg_scale_sharpen.py` - `tests/test_fixed_scale_sites.py` - `tests/test_flat_map.py` - `tests/test_floor_carry_step.py` - `tests/test_fps_overlay_order.py` - `tests/test_fps_stats.py` - `tests/test_frame_rate_cap_step.py` - `tests/test_frame_whole.py` - `tests/test_framegen_auto.py` - `tests/test_framegen_hdr.py` - `tests/test_framegen_resources.py` - `tests/test_free_view_anchor.py` - `tests/test_fs_path_utf8.py` - `tests/test_fsr_image_retirement.py` - `tests/test_fsr_uniform_ownership.py` - `tests/test_game_boundary.py` - `tests/test_game_layout.py` - `tests/test_gpu_choice.py` - `tests/test_high_fps_fixes.py` - `tests/test_horse_jump_step.py` - `tests/test_hud_layout.py` - `tests/test_image_reaper_threads.py` - `tests/test_image_view_retry.py` - `tests/test_import_hold.py` - `tests/test_import_reach.py` - `tests/test_import_span.py` - `tests/test_import_windows.py` - `tests/test_input_background.py` - `tests/test_jobs_wait_runs_queued.py` - `tests/test_jump_takeoff_step.py` - `tests/test_keyboard_menu_option.py` - `tests/test_keyboard_option.py` - `tests/test_late_fix_build.py` - `tests/test_lifter.py` - `tests/test_linux_pressure.py` - `tests/test_loaded_modules_drop.py` - `tests/test_log_batch.py` - `tests/test_log_levels.py` - `tests/test_log_redact.py` - `tests/test_loop_step.py` - `tests/test_lower_atomg_cas.py` - `tests/test_lower_end_at_closing_branch.py` - `tests/test_lower_immediate_not_register.py` - `tests/test_lower_imnmx_wide_immediate.py` - `tests/test_lower_isberd_output.py` - `tests/test_lower_ldg_uniform_order.py` - `tests/test_lower_lea_hi_constant.py` - `tests/test_lower_r2ur_one_register.py` - `tests/test_lower_suld_1d.py` - `tests/test_lower_tld_ms.py` - `tests/test_mask_history_retire.py` - `tests/test_menu_env_on.py` - `tests/test_menu_hooks.py` - `tests/test_menu_keys.py` - `tests/test_menu_model.py` - `tests/test_menu_module_slots.py` - `tests/test_menu_modules.py` - `tests/test_menu_mouse_scroll.py` - `tests/test_menu_restart.py` - `tests/test_menu_rows_model.py` - `tests/test_menu_sections.py` - `tests/test_mirror_bookkeeping.py` - `tests/test_mirror_inherit.py` - `tests/test_mirror_trim.py` - `tests/test_mods_list.py` - `tests/test_mouse_native.py` - `tests/test_movement_speed.py` - `tests/test_movie_frame_count.py` - `tests/test_ocarina_wait.py` - `tests/test_ocb_hold.py` - `tests/test_oot_barrier.py` - `tests/test_oot_camera_clearance.py` - `tests/test_oot_cloth.py` - `tests/test_oot_cloth_60.py` - `tests/test_oot_cloth_time.py` - `tests/test_oot_damage.py` - `tests/test_oot_fov.py` - `tests/test_oot_heap_retry.py` - `tests/test_oot_jitter.py` - `tests/test_oot_shadow.py` - `tests/test_oot_shadow_fit.py` - `tests/test_oot_state_tap.py` - `tests/test_oot_transition_autosave.py` - `tests/test_oot_voice_option.py` - `tests/test_oot_wide_bubble.py` - `tests/test_oot_wide_save_picture.py` - `tests/test_option_ids.py` - `tests/test_parity_gates.py` - `tests/test_pass_barrier.py` - `tests/test_pcache_stamp.py` - `tests/test_perf_send.py` - `tests/test_player_update_sites.py` - `tests/test_prepare_seed_stamp.py` - `tests/test_prepare_stall.py` - `tests/test_prepare_workers.py` - `tests/test_present_acquire_ahead.py` - `tests/test_present_image_free.py` - `tests/test_present_source_crop.py` - `tests/test_profile_symbols.py` - `tests/test_program_cache_cleanup.py` - `tests/test_program_cache_one_variant.py` - `tests/test_program_cache_reader.py` - `tests/test_program_cache_store_record.py` - `tests/test_program_record_head.py` - `tests/test_push_state.py` - `tests/test_quick_pipelines.py` - `tests/test_readback_timeout_reuse.py` - `tests/test_recorder_sync.py` - `tests/test_recording_admission.py` - `tests/test_report_words.py` - `tests/test_reshade_fx.py` - `tests/test_run_all_junit.py` - `tests/test_run_all_mingw.py` - `tests/test_saved_turn_rate.py` - `tests/test_scarecrow_timing.py` - `tests/test_scene_format.py` - `tests/test_screensaver.py` - `tests/test_seed_kept_loaded.py` - `tests/test_seed_reader.py` - `tests/test_settings_table.py` - `tests/test_skip_code.py` - `tests/test_song_note_cue.py` - `tests/test_sound_held_frames.py` - `tests/test_sparse_bc_usage.py` - `tests/test_sprint.py` - `tests/test_staging_burst.py` - `tests/test_startup_progress.py` - `tests/test_switch_table.py` - `tests/test_taau_env_lookup.py` - `tests/test_target_overlap.py` - `tests/test_target_retention.py` - `tests/test_temporal_present_bandwidth.py` - `tests/test_tex_compact.py` - `tests/test_tex_desc_memo.py` - `tests/test_tex_spans_once_a_present.py` - `tests/test_text_keyboard_policy.py` - `tests/test_text_speed.py` - `tests/test_title_card_sites.py` - `tests/test_ub_gap.py` - `tests/test_ub_snapshot_default.py` - `tests/test_ub_snapshot_gpu_writes.py` - `tests/test_upscale_fallback.py` - `tests/test_upscale_independent.py` - `tests/test_upscaler_round_trip.py` - `tests/test_utf8_paths.py` - `tests/test_vram_compact.py` - `tests/test_water_substeps.py` - `tests/test_wb_diff_stale_shadow.py` - `tests/test_wb_learn.py` - `tests/test_wb_pages.py` - `tests/test_wb_pending_capture.py` - `tests/test_web_floor_steps.py` - `tests/test_wide_sites.py` - `tests/test_wide_ui.py` - `tests/test_windows_display_startup.py` - `tests/test_windows_on_linux.py` - `tests/test_wrote_regions.py` - `tests/test_xinput_thread.py` </details>
Assisted-by: OpenAI Codex
fix(vk): bind a supported depth-comparison image view
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m56s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m21s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m25s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m24s
CI / Website build and checks (pull_request) Failing after 29s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 14m9s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m54s
4c327cf778
Check the actual sampled image view format in ordinary and table bindings. Keep comparison descriptors valid with compatible depth dummy views when nullDescriptor is unavailable.

Assisted-by: OpenAI Codex
Author
Member

Tested in game: Windows RTX 4070, driver 621.01. Reached the same live Deku Tree checkpoint with Vulkan synchronization validation. Base reported 30 depth-comparison errors. The fixed renderer completed with zero Vulkan errors and both runs exited cleanly. Median rendered FPS across two alternating runs per build was 114.8 on main and 115.4 with the fix.

Tested in game: Windows RTX 4070, driver 621.01. Reached the same live Deku Tree checkpoint with Vulkan synchronization validation. Base reported 30 depth-comparison errors. The fixed renderer completed with zero Vulkan errors and both runs exited cleanly. Median rendered FPS across two alternating runs per build was 114.8 on main and 115.4 with the fix.
Member

Possibly related, for context:

  • PR #403 fix(vk): give image descriptors a dummy view when nullDescriptor is off — Earlier dummy-view fallback; this adds depth-comparison-specific formats
Possibly related, for context: - PR #403 fix(vk): give image descriptors a dummy view when nullDescriptor is off — Earlier dummy-view fallback; this adds depth-comparison-specific formats
Owner
@review
BeanBot left a comment

Recommendation: Approve. The reported RTX 4070 validation errors disappear, but a missing 1D comparison view skips draws on devices without null descriptors, and a transient fallback creation failure can leave later draws permanently skipped. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change checks the resolved view format before depth comparisons and supplies typed fallback views. It fixes the reported validation errors on the tested NVIDIA system, at the cost of new fallback initialization and descriptor checks.

Should fix (3): not blocking, but worth doing before merging.

  • L1 gpu/vk/vk_draw.cpp:7352: The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts those shader types. (more on the line) Do: Create supported 1D and 1D-array depth fallback views and add a fixture covering their use.
  • L2 gpu/vk/vk_draw.cpp:7433: A failed depth image or view creation is never retried after the color dummies have been created. (more on the line) Do: Retry missing depth resources on later recordings, preserving successfully created resources and cleaning up partial failures; test a failure followed by successful creation.
  • L3 tests/test_dummy_views.py:92: The comparison test calls the guard directly, so it does not verify that ordinary descriptor construction actually invokes it. (more on the line) Do: Exercise descriptor construction with an unsupported resolved view and assert the resulting descriptor uses the fallback, for both ordinary and table paths.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4 gpu/vk/vk_draw.cpp:5925: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. (more on the line) Do: Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output.

@fix can do L1, L2 and L3.

Checks: Failing on this head, which is behind its base, where it passes: CI / Third-party parts and guide screenshots (pull_request). @rebase (or @fix) brings it up to date and runs it again; not held against it. Still running: 8 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported validation error on the tested Windows RTX 4070: the author reports 30 errors on the base and zero with the fix. The two FPS runs overlap in spread, so they do not establish a performance gain or rule out smaller costs.

Other systems: The descriptor change affects graphics and compute sampling on both Windows and Linux, including AMD, Intel and Steam Deck. The forced-no-null Windows replay exercised the 2D fallback, but Linux and another GPU without null descriptors remain untested; the PR also lacks the required Tier 1 coverage.

Switches: None added, changed or removed.

Reviewed: 4c327cf778 against b40214d2bb: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both commits, the complete diff, the changed tests and loader header, and the changed renderer functions and their descriptor, texture-view and initialization callers. Skimmed other renderer references and the reported runs. The rest of the large vk_draw.cpp and the full generated or third-party files were not read. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • The diff contains no game-derived files, generated shaders, third-party changes, API-version changes or new switches.
  • The handle cache now retains the resolved view format, and the reported Windows gameplay run exercised the fix.

Testing: Read-only review; no code, tests or project scripts were run. The PR reports successful Windows gameplay and focused checks; CI is still running.

Overlaps and merge order: Not checked; network access was unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The reported RTX 4070 validation errors disappear, but a missing 1D comparison view skips draws on devices without null descriptors, and a transient fallback creation failure can leave later draws permanently skipped. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change checks the resolved view format before depth comparisons and supplies typed fallback views. It fixes the reported validation errors on the tested NVIDIA system, at the cost of new fallback initialization and descriptor checks. **Should fix (3)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_draw.cpp:7352`: The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts those shader types. (more on the line) **Do:** Create supported 1D and 1D-array depth fallback views and add a fixture covering their use. - **L2** `gpu/vk/vk_draw.cpp:7433`: A failed depth image or view creation is never retried after the color dummies have been created. (more on the line) **Do:** Retry missing depth resources on later recordings, preserving successfully created resources and cleaning up partial failures; test a failure followed by successful creation. - **L3** `tests/test_dummy_views.py:92`: The comparison test calls the guard directly, so it does not verify that ordinary descriptor construction actually invokes it. (more on the line) **Do:** Exercise descriptor construction with an unsupported resolved view and assert the resulting descriptor uses the fallback, for both ordinary and table paths. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4** `gpu/vk/vk_draw.cpp:5925`: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. (more on the line) **Do:** Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output. `@fix` can do L1, L2 and L3. **Checks:** Failing on this head, which is behind its base, where it passes: `CI / Third-party parts and guide screenshots (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. Still running: 8 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported validation error on the tested Windows RTX 4070: the author reports 30 errors on the base and zero with the fix. The two FPS runs overlap in spread, so they do not establish a performance gain or rule out smaller costs. **Other systems:** The descriptor change affects graphics and compute sampling on both Windows and Linux, including AMD, Intel and Steam Deck. The forced-no-null Windows replay exercised the 2D fallback, but Linux and another GPU without null descriptors remain untested; the PR also lacks the required Tier 1 coverage. **Switches:** None added, changed or removed. **Reviewed:** 4c327cf778fd against b40214d2bb8d: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, both commits, the complete diff, the changed tests and loader header, and the changed renderer functions and their descriptor, texture-view and initialization callers. Skimmed other renderer references and the reported runs. The rest of the large vk_draw.cpp and the full generated or third-party files were not read. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - The diff contains no game-derived files, generated shaders, third-party changes, API-version changes or new switches. - The handle cache now retains the resolved view format, and the reported Windows gameplay run exercised the fix. **Testing:** Read-only review; no code, tests or project scripts were run. The PR reports successful Windows gameplay and focused checks; CI is still running. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -5892,1 +5922,4 @@
VkImageView raw_view = handle ? texture_view_of(handle, vt, ViewUse::Sample, VK_FORMAT_UNDEFINED, &tex)
: VK_NULL_HANDLE;
upload_defer_ok = false;
guard_depth_comparison(raw_view, tex, last_view_format, d.is_depth, false, p.key, k);
Member

L4 (should fix): The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge.

When: AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device.

Do: Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output.

**L4** (should fix): The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. *When:* AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device. **Do:** Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output.
@ -7280,0 +7349,4 @@
vkCmdPipelineBarrier2(rec_cmd, &dependency);
constexpr VkImageViewType kinds[] = {VK_IMAGE_VIEW_TYPE_2D, VK_IMAGE_VIEW_TYPE_2D_ARRAY, VK_IMAGE_VIEW_TYPE_CUBE,
VK_IMAGE_VIEW_TYPE_CUBE_ARRAY};
Member

L1 (should fix): The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts those shader types.

When: On a device without null descriptors, a 1D comparison descriptor with an unresolved or unsupported view selects a null depth_view. bind_descriptors then rejects the entire descriptor set and the draw or dispatch is skipped.

Do: Create supported 1D and 1D-array depth fallback views and add a fixture covering their use.

**L1** (should fix): The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts those shader types. *When:* On a device without null descriptors, a 1D comparison descriptor with an unresolved or unsupported view selects a null depth_view. bind_descriptors then rejects the entire descriptor set and the draw or dispatch is skipped. **Do:** Create supported 1D and 1D-array depth fallback views and add a fixture covering their use.
@ -7344,6 +7430,7 @@ void make_dummies() {
vi.subresourceRange = {VK_IMAGE_ASPECT_COLOR_BIT, 0, 1, 0, view_layers[v]};
if (vkCreateImageView(dev.device, &vi, nullptr, &dummies.view[v]) != VK_SUCCESS) dummies.view[v] = VK_NULL_HANDLE;
}
make_depth_dummies();
Member

L2 (should fix): A failed depth image or view creation is never retried after the color dummies have been created.

When: If both depth image allocations fail temporarily, or a depth view creation fails, make_dummies returns on subsequent calls because its color image exists; draw_begin_recording also calls it only while zero_buffer is absent. On a device without null descriptors, later comparison bindings needing that fallback keep skipping their draws even after memory becomes available.

Do: Retry missing depth resources on later recordings, preserving successfully created resources and cleaning up partial failures; test a failure followed by successful creation.

**L2** (should fix): A failed depth image or view creation is never retried after the color dummies have been created. *When:* If both depth image allocations fail temporarily, or a depth view creation fails, make_dummies returns on subsequent calls because its color image exists; draw_begin_recording also calls it only while zero_buffer is absent. On a device without null descriptors, later comparison bindings needing that fallback keep skipping their draws even after memory becomes available. **Do:** Retry missing depth resources on later recordings, preserving successfully created resources and cleaning up partial failures; test a failure followed by successful creation.
@ -59,0 +89,4 @@
support_depth = true;
Texture texture;
for (bool table : {false, true}) {
auto view = (VkImageView)1;
Member

L3 (should fix): The comparison test calls the guard directly, so it does not verify that ordinary descriptor construction actually invokes it.

When: Removing the guard call from the ordinary descriptor path leaves this fixture passing, while an unsupported resolved view is again bound to the comparison sampler and reproduces the reported validation error.

Do: Exercise descriptor construction with an unsupported resolved view and assert the resulting descriptor uses the fallback, for both ordinary and table paths.

**L3** (should fix): The comparison test calls the guard directly, so it does not verify that ordinary descriptor construction actually invokes it. *When:* Removing the guard call from the ordinary descriptor path leaves this fixture passing, while an unsupported resolved view is again bound to the comparison sampler and reproduces the reported validation error. **Do:** Exercise descriptor construction with an unsupported resolved view and assert the resulting descriptor uses the fallback, for both ordinary and table paths.
Owner
@fix
Member

I didn't fix this pull request: the change I made would take out 43 of the 96 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1, L2 and L3 are the author's now. Nothing was pushed.


Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

I didn't fix this pull request: the change I made would take out 43 of the 96 lines this pull request adds outside its tests, which undoes it rather than fixing it. So L1, L2 and L3 are the author's now. Nothing was pushed. --- <sub>Automated fix by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
futondestroyer force-pushed codex/depth-comparison-format from 4c327cf778
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m56s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m21s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m25s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m24s
CI / Website build and checks (pull_request) Failing after 29s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 14m9s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 39m54s
to 2cdd2d6c60
Some checks failed
CI / What the change needs (pull_request) Successful in 5s
CI / Third-party parts and guide screenshots (pull_request) Failing after 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 16s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m45s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m17s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m53s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m43s
CI / Website build and checks (pull_request) Failing after 31s
PR description / Title and description (pull_request_target) Successful in 7s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 16m37s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 34m40s
2026-12-03 00:41:31 +00:00
Compare
Author
Member

Rebased onto 455b0837 and addressed the BeanBot review in 2cdd2d6c.

  • L1 adds device-gated D32/D16 1D and 1D_ARRAY views. The forced-no-null gameplay run creates real D32 views of both types.
  • L2 retries transient failures at recording start while preserving successful resources. The fixture covers allocation and view failures followed by success. The diagnostic run rejects the first 1D view creation, then creates it on retry.
  • L3 exercises the actual ordinary and handle-table descriptor construction statements, including the emitted view. Removing either guard makes its own check fail.
  • Native and hardware verification has the exact Windows base/candidate plus a forced-no-null arm. At the matched Deku Tree checkpoint, validation reports 30 depth-comparison errors on main and zero Vulkan errors on both candidate arms. The full Windows game-free run found no candidate-only failed check. The updated description records native Linux UTF-8 and Tier 1 gameplay follow-ups and the inherited Guide fixture gate. Leaving the PR WIP for those checks and fresh CI.
Rebased onto `455b0837` and addressed the BeanBot review in `2cdd2d6c`. - [L1](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98067) adds device-gated D32/D16 `1D` and `1D_ARRAY` views. The forced-no-null gameplay run creates real D32 views of both types. - [L2](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98068) retries transient failures at recording start while preserving successful resources. The fixture covers allocation and view failures followed by success. The diagnostic run rejects the first 1D view creation, then creates it on retry. - [L3](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98069) exercises the actual ordinary and handle-table descriptor construction statements, including the emitted view. Removing either guard makes its own check fail. - [Native and hardware verification](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98070) has the exact Windows base/candidate plus a forced-no-null arm. At the matched Deku Tree checkpoint, validation reports 30 depth-comparison errors on main and zero Vulkan errors on both candidate arms. The full Windows game-free run found no candidate-only failed check. The updated description records native Linux UTF-8 and Tier 1 gameplay follow-ups and the inherited Guide fixture gate. Leaving the PR WIP for those checks and fresh CI.
Member
@review
BeanBot left a comment

Recommendation: Request changes. The reported Windows run removes the depth-comparison validation errors, and the three code and test ledger items are addressed. The remaining supported-hardware runs and CI results are needed before merge. (It stands on L6: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 9s.)

The renderer replaces unsupported depth-comparison views with a legal null descriptor or a typed depth fallback. It now retries failed fallback allocations and view creation, at the cost of additional resource and descriptor handling.

Blocking (1): must change before merging.

  1. L6: The check CI / Third-party parts and guide screenshots (pull_request) fails on this head and passes on the base branch: Failing after 9s.

Should fix (1): not blocking, but worth doing before merging.

  • L5 gpu/vk/vk_draw.cpp:7492: The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even when only an ordinary 2D view is needed. (more on the line) Do: Create a separate ordinary 2D fallback when the cube-compatible configuration is unsupported, retaining the cube family for cube views.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4 gpu/vk/vk_draw.cpp:5925: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. When: AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device. Do: Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output.

@fix can do L5 and L6.

Since the last review (on 4c327cf778)
Resolved: L1 (The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts…); L2 (A failed depth image or view creation is never retried after the color dummies have been c…); L3 (The comparison test calls the guard directly, so it does not verify that ordinary descript…)
Still open: L4 (The renderer-wide comparison and fallback paths need the remaining supported hardware runs…)
New: L5 (The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even…); L6 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 9 checks.

More: does it help, other systems, switches, what was read

Does it help: Yes for the reported Windows RTX 4070 case: VUID 06479 reports fell from 30 on the base to zero on the candidate at the matched Deku Tree checkpoint. Median FPS was 109.25 before and 109.55 after, within the spread of two runs per build.

Other systems: Ordinary and handle-table descriptors both use the comparison guard. The reported forced-no-null Windows run exercised creation and retry of 1D depth views; native Linux, AMD, Steam Deck and other affected hardware remain to be tested.

Switches: None added, changed or removed.

Reviewed: 2cdd2d6c60 against 455b083738: Read the repository instructions, contribution rules, PR template, changed diff, ledger, comments and reported results. Inspected the changed renderer and test sections and descriptor memoization callers; the large renderer file and other changed test files were skimmed rather than read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The retry fixture checks image allocation failure, a 1D view failure, and preservation of successful views.
  • The descriptor memo receives the current dummy view on lookup, allowing a newly created fallback to be used.
  • The commits record AI assistance; no switch or generated asset is changed.

Testing: No commands from the project or tests were run. The author reports matched Windows gameplay and focused checks; native Linux UTF-8 build, Tier 1 gameplay and current CI remain pending. CI also reports a head-only third-party parts and guide screenshots failure.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.

**Recommendation: Request changes.** The reported Windows run removes the depth-comparison validation errors, and the three code and test ledger items are addressed. The remaining supported-hardware runs and CI results are needed before merge. (It stands on L6: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 9s.) The renderer replaces unsupported depth-comparison views with a legal null descriptor or a typed depth fallback. It now retries failed fallback allocations and view creation, at the cost of additional resource and descriptor handling. **Blocking (1)**: must change before merging. 1. **L6**: The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head and passes on the base branch: Failing after 9s. **Should fix (1)**: not blocking, but worth doing before merging. - **L5** `gpu/vk/vk_draw.cpp:7492`: The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even when only an ordinary 2D view is needed. (more on the line) **Do:** Create a separate ordinary 2D fallback when the cube-compatible configuration is unsupported, retaining the cube family for cube views. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4** `gpu/vk/vk_draw.cpp:5925`: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. *When:* AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device. **Do:** Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output. `@fix` can do L5 and L6. **Since the last review** (on 4c327cf778fd) Resolved: L1 (The fallback has no 1D or 1D-array comparison views, although the descriptor path accepts…); L2 (A failed depth image or view creation is never retried after the color dummies have been c…); L3 (The comparison test calls the guard directly, so it does not verify that ordinary descript…) Still open: L4 (The renderer-wide comparison and fallback paths need the remaining supported hardware runs…) New: L5 (The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even…); L6 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 9 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the reported Windows RTX 4070 case: VUID 06479 reports fell from 30 on the base to zero on the candidate at the matched Deku Tree checkpoint. Median FPS was 109.25 before and 109.55 after, within the spread of two runs per build. **Other systems:** Ordinary and handle-table descriptors both use the comparison guard. The reported forced-no-null Windows run exercised creation and retry of 1D depth views; native Linux, AMD, Steam Deck and other affected hardware remain to be tested. **Switches:** None added, changed or removed. **Reviewed:** 2cdd2d6c6091 against 455b083738f4: Read the repository instructions, contribution rules, PR template, changed diff, ledger, comments and reported results. Inspected the changed renderer and test sections and descriptor memoization callers; the large renderer file and other changed test files were skimmed rather than read in full. docs/review-checklist.md and the adjacent Tooling AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The retry fixture checks image allocation failure, a 1D view failure, and preservation of successful views. - The descriptor memo receives the current dummy view on lookup, allowing a newly created fallback to be used. - The commits record AI assistance; no switch or generated asset is changed. **Testing:** No commands from the project or tests were run. The author reports matched Windows gameplay and focused checks; native Linux UTF-8 build, Tier 1 gameplay and current CI remain pending. CI also reports a head-only third-party parts and guide screenshots failure. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -7459,0 +7489,4 @@
bool unsupported = false;
};
void make_depth_family(DepthDummyFamily& state, VkImageType type,
Member

L5 (should fix): The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even when only an ordinary 2D view is needed.

When: On a device without null descriptors that supports sampled, transfer-destination 2D depth images but not the requested cube-compatible configuration, the family is marked unsupported and an otherwise usable 2D comparison descriptor is declined.

Do: Create a separate ordinary 2D fallback when the cube-compatible configuration is unsupported, retaining the cube family for cube views.

**L5** (should fix): The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even when only an ordinary 2D view is needed. *When:* On a device without null descriptors that supports sampled, transfer-destination 2D depth images but not the requested cube-compatible configuration, the family is marked unsupported and an otherwise usable 2D comparison descriptor is declined. **Do:** Create a separate ordinary 2D fallback when the cube-compatible configuration is unsupported, retaining the cube family for cube views.
fix(vk): separate ordinary 2D comparison fallback from cube support
Some checks failed
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Failing after 10s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m44s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m3s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m29s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m28s
CI / Website build and checks (pull_request) Failing after 31s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 19m26s
PR description / Title and description (pull_request_target) Failing after 7s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m40s
d39d1bb53e
Assisted-by: OpenAI Codex
Author
Member

L5 is addressed in d39d1bb5. The ordinary 2D and 2D-array depth views get a separate one-layer fallback when the cube configuration is unsupported. The fixture failed at the new assertion on 2cdd2d6c and passes on the follow-up. Six focused checks passed. In live Deku Tree both the production relink and the no-null/cube-rejection diagnostic reported zero Vulkan errors. The diagnostic created the real 2D and 2D-array views.

For L6, the hosted failure lists nine stale Graphics inputs. The same nine fail the same command on exact main at 455b0837, while image integrity and all 17 third-party checks pass. The retained screenshot needs a synthetic comparison and Guide review before changing the fingerprints. The website error about Simulated turf's visibility description also reproduces on both local source trees. The hosted game-free shards are red on 2cdd2d6c and the exact hosted main run is still pending, so they are not treated as a completed hosted A/B.

L4 stays open for physical Tier 1 runs, including naturally absent null descriptors. The earlier Linux CI build passed, and native UTF-8 checkout/export verification is still open. The description records the exact remaining checks.

[L5](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98440) is addressed in `d39d1bb5`. The ordinary 2D and 2D-array depth views get a separate one-layer fallback when the cube configuration is unsupported. The fixture failed at the new assertion on `2cdd2d6c` and passes on the follow-up. Six focused checks passed. In live Deku Tree both the production relink and the no-null/cube-rejection diagnostic reported zero Vulkan errors. The diagnostic created the real 2D and 2D-array views. For [L6](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98441), the [hosted failure](https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/59492/jobs/2) lists nine stale Graphics inputs. The same nine fail the same command on exact `main` at `455b0837`, while image integrity and all 17 third-party checks pass. The retained screenshot needs a synthetic comparison and Guide review before changing the fingerprints. The [website error](https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/59492/jobs/9) about Simulated turf's visibility description also reproduces on both local source trees. The hosted game-free shards are red on `2cdd2d6c` and the exact hosted main run is still pending, so they are not treated as a completed hosted A/B. [L4](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3032#issuecomment-98070) stays open for physical Tier 1 runs, including naturally absent null descriptors. The earlier Linux CI build passed, and native UTF-8 checkout/export verification is still open. The description records the exact remaining checks.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported Windows RTX 4070 run eliminates the depth-comparison validation errors, and the ordinary 2D fallback no longer depends on cube support. The remaining supported-hardware runs are still needed before merge. Recommend approval; not approved on the forge.

The change replaces unsupported depth-comparison views with a legal null descriptor or a compatible cleared depth view. It adds capability checks and fallback resource management to the renderer.

Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)

  • L4 gpu/vk/vk_draw.cpp:5925: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. When: AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device. Do: Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output.

Since the last review (on 2cdd2d6c60)
Resolved: L5 (The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even…)
Still open: L4 (The renderer-wide comparison and fallback paths need the remaining supported hardware runs…); L6 (The check CI / Third-party parts and guide screenshots (pull_request) fails on this head…)

Checks: Still running: 11 checks.

Also noticed (2; not asked for, not blocking)
  • Native Linux UTF-8 checkout and renderer export verification remain outstanding.
  • The exact-head CI checks are still running.
More: does it help, other systems, switches, what was read

Does it help: Yes: at the matched Deku Tree checkpoint, the reported RTX 4070 run reduced VUID 06479 reports from 30 on the base to zero on the candidate. The measured 0.30 FPS median difference is within the spread of the two runs per build and does not establish a performance gain.

Other systems: The descriptor change affects Vulkan comparison sampling on Windows and Linux, including AMD, NVIDIA and Steam Deck. The reported diagnostic run covers disabled null descriptors and rejected cube depth support; the remaining physical Tier 1 runs are outstanding.

Switches: None.

Reviewed: d39d1bb53e against 455b083738: Read AGENTS.md, CONTRIBUTING.md, the pull request template, tests/test_dummy_views.py, the full PR diff except the test_dummy_views.py base diff, and the fallback and descriptor code around the changes. Skimmed the other changed test and loader hunks; did not read the full changed code files or linked developer standards. The repository has no docs/review-checklist.md.; nothing run (a code review).

Checked and fine:

  • The new fixture covers rejected cube-compatible depth images and retains the ordinary 2D fallback on a subsequent recording.
  • The separate 2D family uses the same format capability checks, clear and view creation as the other depth families.

Testing: No commands that build or run project code were executed. The author reports six focused checks and Windows gameplay with production and diagnostic renderer relinks; both candidate gameplay arms reported zero Vulkan errors.

Overlaps and merge order: Not checked; network access is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by futondestroyer. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported Windows RTX 4070 run eliminates the depth-comparison validation errors, and the ordinary 2D fallback no longer depends on cube support. The remaining supported-hardware runs are still needed before merge. Recommend approval; not approved on the forge. The change replaces unsupported depth-comparison views with a legal null descriptor or a compatible cleared depth view. It adds capability checks and fallback resource management to the renderer. **Testing before merging (1)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4** `gpu/vk/vk_draw.cpp:5925`: The renderer-wide comparison and fallback paths need the remaining supported hardware runs before merge. *When:* AMD and Steam Deck players, and Linux players on the affected paths, can exercise different format capabilities and null-descriptor support from the tested Windows NVIDIA device. **Do:** Run the affected scenes with validation and visual checks on Linux and the remaining affected Tier 1 hardware, including a device without null descriptors; compare frame pacing as well as output. **Since the last review** (on 2cdd2d6c6091) Resolved: L5 (The 2D fallback is contingent on support for a cube-compatible six-layer depth image, even…) Still open: L4 (The renderer-wide comparison and fallback paths need the remaining supported hardware runs…); L6 (The check `CI / Third-party parts and guide screenshots (pull_request)` fails on this head…) **Checks:** Still running: 11 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - Native Linux UTF-8 checkout and renderer export verification remain outstanding. - The exact-head CI checks are still running. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes: at the matched Deku Tree checkpoint, the reported RTX 4070 run reduced VUID 06479 reports from 30 on the base to zero on the candidate. The measured 0.30 FPS median difference is within the spread of the two runs per build and does not establish a performance gain. **Other systems:** The descriptor change affects Vulkan comparison sampling on Windows and Linux, including AMD, NVIDIA and Steam Deck. The reported diagnostic run covers disabled null descriptors and rejected cube depth support; the remaining physical Tier 1 runs are outstanding. **Switches:** None. **Reviewed:** d39d1bb53e64 against 455b083738f4: Read AGENTS.md, CONTRIBUTING.md, the pull request template, tests/test_dummy_views.py, the full PR diff except the test_dummy_views.py base diff, and the fallback and descriptor code around the changes. Skimmed the other changed test and loader hunks; did not read the full changed code files or linked developer standards. The repository has no docs/review-checklist.md.; nothing run (a code review). **Checked and fine:** - The new fixture covers rejected cube-compatible depth images and retains the ordinary 2D fallback on a subsequent recording. - The separate 2D family uses the same format capability checks, clear and view creation as the other depth families. **Testing:** No commands that build or run project code were executed. The author reports six focused checks and Windows gameplay with production and diagnostic renderer relinks; both candidate gameplay arms reported zero Vulkan errors. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by futondestroyer. Nothing was run; a maintainer decides.</sub>
Author
Member

Verified the repository Windows UTF-8 path test on unchanged d39d1bb5. The manifest arm round-tripped the Unicode folder with code page 65001. The control reproduced the expected failure under 1252. The native Linux build/export verification and exact-head CI are still outstanding.

Verified the repository Windows UTF-8 path test on unchanged `d39d1bb5`. The manifest arm round-tripped the Unicode folder with code page 65001. The control reproduced the expected failure under 1252. The native Linux build/export verification and exact-head CI are still outstanding.
HumanBean changed title from WIP: fix(vk): bind a supported depth-comparison image view to fix(vk): bind a supported depth-comparison image view 2026-12-03 05:40:18 +00:00
HumanBean deleted branch codex/depth-comparison-format 2026-12-03 05:40:31 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3032
No description provided.