dri: Use __DRI_BUFFER_COUNT consistently internally

These arrays were all sized with insufficiently large magic numbers,
which is probably not a good idea.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <!10142>
35 jobs for !10142 with dri-buffer-count in 10 minutes and 33 seconds (queued for 1 second)
latest merge request