st/dri: make get_texture into validate_att