The mesa-drm package should not be needed for a RPI3b+ installation. Please add more info about your setup - as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.