[SPIR-V] early return with ROV will generate spirv that hung the gpu (or at least weird spirv)

Abierto
#9,020 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp

Línea de trabajo

Start by reproducing with the linked godbolt snippet and dumping the SPIR-V for the early-return path. Look at the block labelled %36, where an OpEndInvocationInterlockEXT and an OpBeginInvocationInterlockEXT appear just before OpBranch %30, and find where the compiler emits the interlock begin/end pairs for early returns. Done means the emitted SPIR-V no longer leaves an unmatched begin interlock before the branch, with a regression test for ROV plus early return.

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

Descripción

bug needs-triage spirv

Hi everyone ! Miss me ?

Description
While using ROVs and having early return, SpirV will generate extra OpEndInvocationInterlockEXT and OpBeginInvocationInterlockEXT that hung the GPU.

Steps to Reproduce
https://godbolt.org/z/YnYqdbjre

Actual Behavior
the early return will produce an extra

         %36 = OpLabel
               OpEndInvocationInterlockEXT
               OpBeginInvocationInterlockEXT
               OpBranch %30

It seems the last OpBeginInvocationInterlockEXT is not closed and the GPU will hung.

Environment
DXC trunk on godbolt
Reproduce also on windows 11 and custom fork of 1.10.2605.24.

Lenguaje dominante
C++
Estrellas
3.7k
Forks
926
Merge medio
3 d 22 h
PR fusionados (30 d)
45

Preparar el entorno

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 microsoft/DirectXShaderCompiler

Todos los issues de microsoft/DirectXShaderCompiler

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.