tested by matthieu@ krw@ mpi@ shadchin@ and ajacoutot@ ok mpi@
needed for the r600 dri driver. Tested by myself and matthieu.