Commit Graph
1 Commits
Author SHA1 Message Date
elwrcl 4cd710a261 hasvk: Skip zero-sized compute dispatches on gen7.
GPGPU_WALKER has no encoding for a zero group count, so passing one
through walks the full dimension and the command never retires, hanging
rcs0 (GPU HANG ecode 7:1:8ff8ffff, EIR and PGTBL_ER both clear).  A zero
dispatch is legal and defined as a no-op, so drop it at record time.
through walks the full dimension and the command never retires, hanging
rcs0 (GPU HANG ecode 7:1:8ff8ffff, EIR and PGTBL_ER both clear).  A zero
dispatch is legal and defined as a no-op, so drop it at record time.

Gen9+ uses COMPUTE_WALKER and handles this in hardware, which is why
upstream anv carries no equivalent guard.

Fixes dEQP-VK.compute.pipeline.basic.empty_workgroup_{all,x,y,z} and
empty_shader, which previously aborted the run and could take the whole
machine down.  compute.pipeline.* now 20285 cases, 0 fail.
2026-08-20 21:54:03 +03:00