st/dri: add inline for dri2 check done in multiple places
3 files changed