{"id":6801,"date":"2017-05-18T15:24:16","date_gmt":"2017-05-18T15:24:16","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=6801"},"modified":"2017-05-18T15:24:16","modified_gmt":"2017-05-18T15:24:16","slug":"install-mesa-17-1-0-ubuntu-16-04-17-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2017\/05\/install-mesa-17-1-0-ubuntu-16-04-17-04\/","title":{"rendered":"How to Install Mesa 17.1.0 via PPA in Ubuntu 16.04, 17.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/opengl-logo245.png\" alt=\"\" width=\"245\" height=\"250\" class=\"alignleft size-full wp-image-6802\" \/><\/p>\n<p>The latest Mesa 3D graphics library 17.1.0, which was released a week ago, now is backported for Ubuntu 16.04 and Ubuntu 17.04 via <a href=\"https:\/\/launchpad.net\/~ubuntu-x-swat\/+archive\/ubuntu\/updates\" target=\"_blank\">&#8220;Ubuntu-X&#8221; team PPA<\/a>.<\/p>\n<blockquote><p><i>Mesa 17.1.0 implements the OpenGL 4.5 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) \/ glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don&#8217;t support all the features required in OpenGL 4.5. OpenGL 4.5 is only available if requested at context creation because compatibility contexts are not supported.<\/i><\/p><\/blockquote>\n<p><a href=\"https:\/\/www.mesa3d.org\/relnotes\/17.1.0.html\" target=\"_blank\">Mesa 17.1.0<\/a> features:<\/p>\n<ul>\n<li>OpenGL 4.2 on i965\/ivb<\/li>\n<li>GL_ARB_gpu_shader_fp64 on i965\/ivybridge<\/li>\n<li>GL_ARB_gpu_shader_int64 on i965\/gen8+, nvc0, radeonsi, softpipe, llvmpipe<\/li>\n<li>GL_ARB_shader_ballot on nvc0, radeonsi<\/li>\n<li>GL_ARB_shader_clock on nv50, nvc0, radeonsi<\/li>\n<li>GL_ARB_shader_group_vote on radeonsi<\/li>\n<li>GL_ARB_shader_precision on i965\/ivb<\/li>\n<li>GL_ARB_shader_viewport_layer_array on radeonsi<\/li>\n<li>GL_ARB_sparse_buffer on radeonsi\/CIK+<\/li>\n<li>GL_ARB_transform_feedback2 on i965\/gen6<\/li>\n<li>GL_ARB_transform_feedback_overflow_query on i965\/gen6+<\/li>\n<li>GL_ARB_vertex_attrib_64bit on i965\/ivb<\/li>\n<li>GL_NV_fill_rectangle on nvc0<\/li>\n<li>Geometry shaders enabled on swr<\/li>\n<\/ul>\n<h4>Install Mesa 17.1.0 in Ubuntu 16.04 \/ 17.04:<\/h4>\n<p>Open terminal by pressing Ctrl+Alt+T or searching for &#8220;Terminal&#8221; from start menu. When it opens, run following commands one by one:<\/p>\n<p><b>1.<\/b> Add the PPA repository via command:<\/p>\n<pre style=\"border:None;\">sudo add-apt-repository ppa:ubuntu-x-swat\/updates<\/pre>\n<p><i> Type in your password (no visual feedback due to security reason) and hit Enter.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/mesa-ppa-600x92.jpg\" alt=\"Mesa ppa\" width=\"600\" height=\"92\" class=\"aligncenter size-large wp-image-6803\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/mesa-ppa-600x92.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/mesa-ppa-450x69.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/mesa-ppa.jpg 740w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>2.<\/b> Then check updates and upgrade your system to get the latest Mesa library:<\/p>\n<pre style=\"border:none;\">sudo apt update\r\n\r\nsudo apt dist-upgrade<\/pre>\n<p>To check result, run command:<\/p>\n<pre style=\"border:none;\">glxinfo | grep \"OpenGL version\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/opengl-version-600x76.jpg\" alt=\"\" width=\"600\" height=\"76\" class=\"aligncenter size-large wp-image-6804\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/opengl-version-600x76.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/opengl-version-450x57.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/05\/opengl-version.jpg 745w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>How to Restore:<\/b><\/p>\n<p>To revert back to the original Mesa 3D graphics library in your main Ubuntu repository, get into command console and run:<\/p>\n<pre style=\"border:none;\">sudo apt install ppa-purge && sudo ppa-purge ppa:ubuntu-x-swat\/updates<\/pre>","protected":false},"excerpt":{"rendered":"<p>The latest Mesa 3D graphics library 17.1.0, which was released a week ago, now is backported for Ubuntu 16.04 and Ubuntu 17.04 via &#8220;Ubuntu-X&#8221; team PPA. Mesa 17.1.0 implements the OpenGL 4.5 API, but the version reported by glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) \/ glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used. Some drivers don&#8217;t support all [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1447,1448],"class_list":["post-6801","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-mesa-3d-graphics-library","tag-mesa-ppa"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6801","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=6801"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/6801\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=6801"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=6801"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=6801"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}