st/dri: replace hard-coded array size with ARRAY_SIZE()