KosmicKrisp: OpImageQueryLod ignores sampler mipLodBias (ps_ssharp_lod fails natively on Mesa 26.3.1)

Đang mở
#3,124 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
macos, python
Lĩnh vực
cloud

Hướng nghiên cứu

The failure is in the synthetic ps_ssharp_lod test, which exercises image_get_lod with a biased sampler; the report says the bias is dropped from lambda' on KosmicKrisp, and the --lod-bias-fallback flag is the workaround to compare against. Start from the test and the sampler setup that sets mipLodBias in the repository, then decide between driver detection and a narrower fix. Done means a clear design choice and a native pass on the affected driver, or a documented decision not to fix natively.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Summary

On Mesa 26.3.1 KosmicKrisp (Apple M3 Max, macOS 27.3), OpImageQueryLod omits the sampler's mipLodBias from lambda'. As a result, the synthetic ps_ssharp_lod test introduced in PR #1845 fails natively on KosmicKrisp even though KosmicKrisp reports samplerMipLodBias = VK_TRUE and passes ps_ssharp and ps_ssharp_ops natively.

Measured behaviour
  • Hardware / Driver: Apple M3 Max, macOS 27.3, Mesa 26.3.1 KosmicKrisp (Homebrew mesa).
  • Native path (--lod-bias-fallback off):
    • ps_ssharp (11 S#/T# cases): PASS
    • ps_ssharp_ops (_l, _b, _d, _d_cl): PASS
    • ps_ssharp_lod (image_get_lod): FAIL (returned lambda' omits sampler mipLodBias)
  • With --lod-bias-fallback forced on (LEONIDA_LOD_BIAS_FALLBACK=1, sampler mipLodBias = 0):
    • ps_ssharp, ps_ssharp_ops, ps_ssharp_lod: ALL PASS (both plain and with LEONIDA_W64_EMULATE=1 LEONIDA_MESH_COMPUTE=1).
  • Control drivers: Native ps_ssharp_lod passes on llvmpipe (Mesa 26.3.1), NVIDIA RTX 4060 Ti, and AMD RX 7600 (see reports on #1845).
Impact & Open design question

Real shaders using image_get_lod with a biased S# will compute the wrong LOD on KosmicKrisp unless either:

  1. KosmicKrisp auto-selects --lod-bias-fallback (and zeros sampler mipLodBias) by driver ID/version until Mesa fixes OpImageQueryLod, or
  2. A narrower workaround is used.

No game files were used. Synthetic test shaders only. AI-assisted report.

Ngôn ngữ chính
Python
Star
14.9k
Fork
1.2k
Merge trung bình
1 giờ 58 phút
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ItsNotRexed/Leonida

Tất cả issue của ItsNotRexed/Leonida

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.