anv: Emit CS Stall before Instruction Cache flush for gen12 WA

Before flushing the instruction cache with a pipe control, we need to
use a CS Stall pipe control.

Ref: GEN:BUG:1409226450
Rework: Add stall-at-scoreboard (Lionel)
Rework: Merge with other anvil pre-invalidate stalls (Lionel)
Signed-off-by: Jordan Justen <>
Reviewed-by: Lionel Landwerlin <>
Tested-by: Marge Bot <mesa/mesa!3457>
Part-of: <mesa/mesa!3457>
38 jobs for !3457 with wa-1409226450 in 22 minutes and 26 seconds (queued for 6 seconds)
merge request