aco: properly recognize that s_waitcnt mitigates VMEMtoScalarWriteHazard
[mesa.git] / src / amd / compiler / README.md
index 7c7e68f458eee53eb56238b59e9acdbb98de7720..9c47c07bc80de209748dd59c101dce1f4729a352 100644 (file)
@@ -131,6 +131,15 @@ finish and then write to vcc (for example, `s_mov_b64 vcc, vcc`) to correct vccz
 
 Currently, we don't do this.
 
+## GCN / GFX6 hazards
+
+### VINTRP followed by a read with v_readfirstlane or v_readlane
+
+It's required to insert 1 wait state if the dst VGPR of any v_interp_* is
+followed by a read with v_readfirstlane or v_readlane to fix GPU hangs on GFX6.
+Note that v_writelane_* is apparently not affected. This hazard isn't
+documented anywhere but AMD confirmed it.
+
 ## RDNA / GFX10 hazards
 
 ### SMEM store followed by a load with the same address