mesa: replace for loop with bitshifting in supported_buffer_bitmask()