P3: -gr_sync_validation reports itself enabled but never turns on synchronization validation
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp
- Lĩnh vực
- computer-graphics
Hướng nghiên cứu
Bắt đầu từ VulkanRenderer::initializeInstance, nơi nhánh không dùng OpenXR truyền createInfo trần vào vk::createInstanceUnique. So sánh với nhánh OpenXR, nhánh này truyền phần đầu của createInstanceChain. Biên dịch ở chế độ Debug với Vulkan, chạy với -gr_sync_validation và kiểm tra trong fs2_open.log các dòng SYNC-HAZARD. Hoàn thành khi chỉ riêng cờ này báo cáo cùng các hazard mà VK_KHRONOS_VALIDATION_VALIDATE_SYNC=true báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
-gr_sync_validation does not turn on Vulkan synchronization validation. The log says "Vulkan: Synchronization validation enabled (-gr_sync_validation)", but no synchronization hazards are ever reported, so a clean run with the flag proves nothing. Outside OpenXR, vk::createInstanceUnique is passed the bare createInfo instead of the head of the structure chain, so the validation-features struct (and the debug messenger meant to catch messages during instance creation) never reaches the driver. The OpenXR branch passes the chain correctly.
Steps to reproduce
- Build current master (tested on 8afa31842) in Debug with Vulkan, MediaVPs 5.0.2, no other mods.
- Run SM1-01 with
-vulkan -gr_sync_validationfor about 20 seconds of gameplay.fs2_open.log: the "Synchronization validation enabled" line, 0 lines containingSYNC-HAZARD. - Run the same thing again with the environment variable
VK_KHRONOS_VALIDATION_VALIDATE_SYNC=true(which turns the same check on from the validation layer's side).fs2_open.log: 10SYNC-HAZARD-WRITE-AFTER-WRITElines fromvkCmdClearAttachmentsin the same 20 seconds.
Expected vs. actual behavior
- Expected: the flag alone reports the same hazards as step 3.
- Actual: the flag alone reports none, while the log claims it is on.
Proposed fixes
- In
VulkanRenderer::initializeInstance, passcreateInstanceChain.get<vk::InstanceCreateInfo>()tovk::createInstanceUnique, as the OpenXR branch already does. - Same change, plus a one-time check after instance creation that logs whether the layer accepted synchronization validation, so the log line reflects what actually happened.
- Same change, plus a note in the flag's help text that
VK_KHRONOS_VALIDATION_VALIDATE_SYNC=trueworks as a fallback on older builds.
The hazards in step 3 are reported as observed; I have not looked into whether each is a real problem.
- Ngôn ngữ chính
- C++
- Star
- 488
- Fork
- 184
- Merge trung bình
- 2 ngày 1 phút
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của scp-fs2open/fs2open.github.com
-
P4: The OpenGL ES option stays on when OpenGL is off ("OFF FORCE" without CACHE)Có thể đã có người làm @Shivansps đã nhận 155 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
scp-fs2open/fs2open.github.com#7984 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
scp-fs2open/fs2open.github.com#7969 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P4: Standalone web API can read past its request buffer on a large request bodyCó thể đã có người làm @dustinspace217 đã nhận 2 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
scp-fs2open/fs2open.github.com#7965 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
P2: A ship-specific HUD with "$Load Retail Configuration: YES" loses most of its retail gaugesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
scp-fs2open/fs2open.github.com#7956 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug HUD LLM-suggested
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
scp-fs2open/fs2open.github.com#7953 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của scp-fs2open/fs2open.github.com
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
eclipse-score/lifecycle#929 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
colbymchenry/codegraph#3223 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
firefox-devtools/profiler#6436 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The `ufw` decoder requires the kernel's monotonic timestamp, so UFW lines read from journald decode without any fieldCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày