dri2: Add plumbing to get context version requirements and flags to drivers