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

Abierto
#3,124 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
18/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, python
Área
cloud

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
14.9k
Forks
1.2k
Merge medio
1 h 58 min
PR fusionados (30 d)
40

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ItsNotRexed/Leonida

Todos los issues de ItsNotRexed/Leonida

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.