A lot of fixes for AMD and Intel GPUs are backported into the Mesa drivers. Therefore it is recommended to install or upgrade to their latest point releases. For certain Linux distribution versions this can be done using custom repositories. For example, using the kisak-mesa PPA for Ubuntu.