mesa: fix ID usage for buffer warnings